diff --git a/business/model/job.go b/business/model/job.go index e085beb4d..a4b0485ec 100644 --- a/business/model/job.go +++ b/business/model/job.go @@ -39,6 +39,8 @@ const ( JobSpanTop = 1 //置顶 JobSpanRecommend = 2 //推荐 + + JobCountrywideCode = 999 ) var ( @@ -73,9 +75,12 @@ type Job struct { CashbackType int `json:"cashbackType"` //返现方式,1为固定返现,2为比例返现 TotalPrice int `json:"totalPrice"` //任务总金额 Status int `json:"status"` //任务状态 - Address string `orm:"size(500)" json:"address"` //任务地址 + Address string `orm:"size(500)" json:"address"` //门店地址 Lng int `json:"lng"` //乘了10的6次方 Lat int `json:"lat"` //乘了10的6次方 + JobLng float64 `json:"jobLng"` //任务发布地址 + JobLat float64 `json:"jobLat"` //任务发布地址 + JobCityCode int `json:"jobCityCode"` //任务所属城市,999代表全国 JobLimitAt int `json:"jobLimitAt"` //任务限时完成小时数 AuditLimitAt int `json:"auditLimitAt"` //任务审核限时小时数 FinishedAt *time.Time `orm:"null" json:"finishedAt"` //接单截止日期