You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.4 KiB
30 lines
1.4 KiB
package models
|
|
|
|
import "database/sql"
|
|
|
|
//分厂&部室栏目
|
|
type LeagueTable struct {
|
|
Id int64 `json:"lt_id" bson:"lt_id"`
|
|
SourceType int8 `json:"lt_source_type" bson:"lt_source_type"` //'积分来源类型(1:阅读;2:赞;3:收藏;4:踩;5:评论;6:发布问题;7:回答问题;8:回答问题被采纳;9:评论问题;10:课堂学习)',
|
|
SourceId int64 `json:"lt_source_id" bson:"lt_source_id"` // '来源ID',
|
|
Fraction int64 `json:"lt_fraction" bson:"lt_fraction"` // '分值',
|
|
FractionType int8 `json:"lt_fraction_type" bson:"lt_fraction_type"` // '1:增加;2:减少;',
|
|
UserKey int64 `json:"lt_user_key" bson:"lt_user_key"` // '归属人',
|
|
Explain sql.NullString `json:"lt_explain" bson:"lt_explain"` // '说明',
|
|
TimeVal int64 `json:"lt_time" bson:"lt_time"` //'0',
|
|
IsTrue int8 `json:"lt_true" bson:"lt_true"` // '是否有效(1:有效;2:无效)',
|
|
Group int8 `json:"lt_group" bson:"lt_group"` // '组织',
|
|
}
|
|
|
|
func (b *LeagueTable) InitLeagueTable() {
|
|
b.Id = 0
|
|
b.SourceType = 1
|
|
b.SourceId = 0
|
|
b.Fraction = 0
|
|
b.FractionType = 1
|
|
b.UserKey = 0
|
|
b.Explain = sql.NullString{"", false}
|
|
b.TimeVal = 0
|
|
b.IsTrue = 1
|
|
b.Group = 1
|
|
}
|
|
|