job
This commit is contained in:
@@ -1,18 +1,31 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
JobStatusDoing = 0
|
||||
JobStatusFinished = 1
|
||||
)
|
||||
|
||||
type Job struct {
|
||||
ModelIDCULD
|
||||
|
||||
ThingID string `orm:"column(thing_id)" json:"thingID"` //发布人ID
|
||||
ThingType int `json:"thingType"` //发布人类型,1是普通用户,2是商户
|
||||
JobCategoryID int `orm:"column(job_category_id)" json:"jobCategoryID"` //任务类型
|
||||
JobSpan string `orm:"size(500)" json:"jobSpan"` //任务标签
|
||||
Title string `orm:"size(255)" json:"title"` //任务标题
|
||||
Content string `orm:"size(500)" json:"content"` //任务内容
|
||||
Count int `json:"count"` //任务数量
|
||||
AvgPrice int `json:"avgPrice"` //单个任务金额
|
||||
TotalPrice int `json:"totalPrice"` //任务总金额
|
||||
Status int `json:"status"` //任务状态
|
||||
UserID string `orm:"column(user_id)" json:"thingID"` //发布人ID
|
||||
JobCategoryID int `orm:"column(job_category_id)" json:"jobCategoryID"` //任务类型
|
||||
JobSpan string `orm:"size(500)" json:"jobSpan"` //任务标签
|
||||
Title string `orm:"size(255)" json:"title"` //任务标题
|
||||
Content string `orm:"size(500)" json:"content"` //任务内容
|
||||
Count int `json:"count"` //任务数量
|
||||
AvgPrice int `json:"avgPrice"` //单个任务金额
|
||||
TotalPrice int `json:"totalPrice"` //任务总金额
|
||||
Status int `json:"status"` //任务状态
|
||||
Address string `orm:"size(500)" json:"address"` //任务地址
|
||||
Lng int `json:"lng"` // 乘了10的6次方
|
||||
Lat int `json:"lat"` // 乘了10的6次方
|
||||
FinishedAt time.Time `json:"finishedAt"` //截止日期
|
||||
StoreURL string `orm:"column(store_url)" json:"storeURL"` //门店链接
|
||||
SkuURL string `orm:"column(sku_url)" json:"skuURL"` //商品优惠券链接
|
||||
JobSteps []*JobStep `orm:"-" json:"jobSteps"`
|
||||
}
|
||||
|
||||
func (v *Job) TableIndex() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user