30 lines
1.0 KiB
Go
30 lines
1.0 KiB
Go
package request
|
||
|
||
import (
|
||
"service/api/message"
|
||
"service/library/validator"
|
||
)
|
||
|
||
// 自由职业者信息详情查询
|
||
type HYG10000002Req struct {
|
||
*HYGBaseReq
|
||
Timestamp string `json:"timestamp"`
|
||
WorkerId string `json:"workerId"`
|
||
}
|
||
|
||
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
|
||
}
|
||
|
||
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
|
||
}
|