This commit is contained in:
苏尹岚
2020-10-13 11:38:34 +08:00
parent be58e21519
commit 82a4e58c08

28
business/model/job.go Normal file
View File

@@ -0,0 +1,28 @@
package model
type Job struct {
ModelIDCULD
ThingID string `orm:"column(thing_id)" json:"thingID"`
ThingType int `json:"thingType"` //发布人类型
JobCategoryID int `orm:"column(job_category_id)" json:"jobCategoryID"` //任务类型
JobSpan string `orm:"size(500)" json:"jobSpan"` //任务标签
Title string `orm:"size(255)" json:"title"` //任务标题
Count int `json:"count"` //任务数量
AvgPrice int `json:"avgPrice"` //单个任务金额
TotalPrice int `json:"totalPrice"` //任务总金额
}
func (v *Job) TableIndex() [][]string {
return [][]string{
[]string{"ThingID"},
[]string{"CreatedAt"},
}
}
type JobCategory struct {
ModelIDCULD
Name string `orm:"size(48)" json:"name"` //类型名称
Img string `orm:"size(500)" json:"img"` //类型图片
}