mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-10 03:27:54 +00:00
feat(subscription): add subscriptionCount field to Skill entity
This commit is contained in:
parent
7da8ffdb1b
commit
79f1aa4db1
1 changed files with 7 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ public class Skill {
|
|||
@Column(name = "star_count", nullable = false)
|
||||
private Integer starCount = 0;
|
||||
|
||||
@Column(name = "subscription_count", nullable = false)
|
||||
private Integer subscriptionCount = 0;
|
||||
|
||||
@Column(name = "rating_avg", precision = 3, scale = 2, nullable = false)
|
||||
private BigDecimal ratingAvg = BigDecimal.ZERO;
|
||||
|
||||
|
|
@ -158,6 +161,10 @@ public class Skill {
|
|||
return starCount;
|
||||
}
|
||||
|
||||
public Integer getSubscriptionCount() {
|
||||
return subscriptionCount;
|
||||
}
|
||||
|
||||
public BigDecimal getRatingAvg() {
|
||||
return ratingAvg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue