From 82a4e58c08b2f8489751160366ad1df5322419ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 13 Oct 2020 11:38:34 +0800 Subject: [PATCH] job --- business/model/job.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 business/model/job.go diff --git a/business/model/job.go b/business/model/job.go new file mode 100644 index 000000000..980a96dc8 --- /dev/null +++ b/business/model/job.go @@ -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"` //类型图片 +}