This commit is contained in:
苏尹岚
2020-12-17 15:25:17 +08:00
parent 5c678d1117
commit 165da4d980
6 changed files with 73 additions and 46 deletions

View File

@@ -60,7 +60,10 @@ type Job struct {
UserID string `orm:"column(user_id)" json:"userID"` //发布人ID
JobCategoryID int `orm:"column(job_category_id)" json:"jobCategoryID"` //任务类型
JobSpan int `json:"jobSpan"` //任务标签
JobSpanTop int `json:"jobSpanTop"` //置顶标签
TopSeq int `json:"topSeq"` //置顶顺序
JobSpanRecmd int `json:"jobSpanRecmd"` //推荐标签
RecmdSeq int `json:"recmdSeq"` //推荐顺序
Title string `orm:"size(255)" json:"title"` //任务标题
Content string `orm:"size(500)" json:"content"` //任务内容
Count int `json:"count"` //任务数量
@@ -180,6 +183,20 @@ func (v *JobTimer) TableIndex() [][]string {
}
}
type JobSpan struct {
ModelIDCUL
JobID int `orm:"column(job_id)" json:"jobID"` //任务ID
EndAt *time.Time `json:"endAt"` //生效时间范围
SpanType int `json:"spanType"` //1为置顶2为推荐
}
func (v *JobSpan) TableIndex() [][]string {
return [][]string{
[]string{"JobID", "DeletedAt"},
}
}
type MtMember struct {
ModelIDCULD