30 lines
1.0 KiB
Go
30 lines
1.0 KiB
Go
package request
|
||
|
||
import (
|
||
"service/api/message"
|
||
"service/library/validator"
|
||
)
|
||
|
||
// 自由职业者网签查询报文
|
||
type HYG10000001Req struct {
|
||
*HYGBaseReq
|
||
Timestamp string `json:"timestamp"`
|
||
WorkerId string `json:"workerId"`
|
||
}
|
||
|
||
func (req *HYG10000001Req) 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 *HYG10000001Req) 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
|
||
}
|