2024-06-15 11:41:12 +08:00
|
|
|
|
package request
|
2024-06-15 19:06:47 +08:00
|
|
|
|
|
2024-06-21 18:25:24 +08:00
|
|
|
|
import (
|
|
|
|
|
"service/api/message"
|
|
|
|
|
"service/library/validator"
|
|
|
|
|
)
|
2024-06-17 22:25:43 +08:00
|
|
|
|
|
2024-06-15 19:06:47 +08:00
|
|
|
|
// 自由职业者信息详情查询
|
|
|
|
|
type HYG10000002Req struct {
|
2024-06-17 22:25:43 +08:00
|
|
|
|
*HYGBaseReq
|
|
|
|
|
Timestamp string `json:"timestamp"`
|
|
|
|
|
WorkerId string `json:"workerId"`
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-18 17:10:42 +08:00
|
|
|
|
func (req *HYG10000002Req) GetArgList() []*message.JsonParamEntry {
|
|
|
|
|
list := make([]*message.JsonParamEntry, 0)
|
|
|
|
|
list = append(list, &message.JsonParamEntry{Name: "cooperatorId", Value: req.HYGBaseReq.CooperatorId})
|
|
|
|
|
list = append(list, &message.JsonParamEntry{Name: "timestamp", Value: req.Timestamp})
|
|
|
|
|
list = append(list, &message.JsonParamEntry{Name: "workerId", Value: req.WorkerId})
|
|
|
|
|
return list
|
2024-06-15 19:06:47 +08:00
|
|
|
|
}
|
2024-06-21 18:25:24 +08:00
|
|
|
|
|
|
|
|
|
func (p *HYG10000002Req) ProvideNotNullValue() (params []*validator.JsonParam) {
|
|
|
|
|
params = make([]*validator.JsonParam, 0)
|
|
|
|
|
params = append(params, validator.NewStringParam("商户id不可为空!", p.GetCooperatorId()))
|
|
|
|
|
params = append(params, validator.NewStringParam("时间戳不可为空!", p.Timestamp))
|
|
|
|
|
params = append(params, validator.NewStringParam("职业者Id不可为空!", p.WorkerId))
|
|
|
|
|
return params
|
|
|
|
|
}
|