53 lines
1.3 KiB
Go
53 lines
1.3 KiB
Go
package request
|
|
|
|
import "yintai-api/app/common/request"
|
|
|
|
type JobTrans struct {
|
|
Name string `json:"name"`
|
|
Desc string `json:"description"`
|
|
Requirement string `json:"requirement"`
|
|
ContractInfo string `json:"contract_info"`
|
|
}
|
|
|
|
type JobCreate struct {
|
|
JobType string `json:"job_type"`
|
|
JobArea string `json:"job_area"`
|
|
JobUnit string `json:"job_unit"`
|
|
RecruitCount string `json:"recruit_count"`
|
|
City string `json:"city"`
|
|
Translations map[string]JobTrans `json:"translations"`
|
|
}
|
|
|
|
type JobUpdate struct {
|
|
ID string `json:"id"`
|
|
JobCreate
|
|
}
|
|
|
|
type JobDelete struct {
|
|
ID string `form:"id"`
|
|
}
|
|
|
|
type JobList struct {
|
|
request.Paginate
|
|
Lang string `form:"lang" binding:"required"`
|
|
City string `form:"city"`
|
|
Title string `form:"title"`
|
|
JobType string `form:"job_type"`
|
|
JobArea string `form:"job_area"`
|
|
JobUnit string `form:"job_unit"`
|
|
Desc string `form:"desc"`
|
|
Reqs string `form:"reqs"`
|
|
}
|
|
|
|
type JobList2 struct {
|
|
request.Paginate
|
|
Lang string `form:"lang"`
|
|
City string `form:"city"`
|
|
Title string `form:"title"`
|
|
JobType string `form:"job_type"`
|
|
JobArea string `form:"job_area"`
|
|
JobUnit string `form:"job_unit"`
|
|
Desc string `form:"desc"`
|
|
Reqs string `form:"reqs"`
|
|
}
|