service/api/message/request/HYG10000002Req.go

30 lines
1.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
}