cfl #536

Merged
chenhao merged 7 commits from cfl into test 2024-06-18 19:48:14 +08:00
9 changed files with 91 additions and 1 deletions
Showing only changes of commit 70422fce3a - Show all commits

View File

@ -1,4 +1,9 @@
package request
// 自由职业者网签查询报文
type HYG10000001Req struct {
CooperatorId string `json:"cooperatorId"`
Timestamp string `json:"timestamp"`
WorkerId string `json:"workerId"`
Sign string `json:"sign"`
}

View File

@ -1 +1,9 @@
package request
// 自由职业者信息详情查询
type HYG10000002Req struct {
CooperatorId string `json:"cooperatorId"`
Timestamp string `json:"timestamp"`
WorkerId string `json:"workerId"`
Sign string `json:"sign"`
}

View File

@ -1 +1,23 @@
package request
// 下发(打款)报文
type HYG10010001Req struct {
CooperatorId string `json:"cooperatorId"` // 商户id
Timestamp string `json:"timestamp"` // 时间戳
WorkerName string `json:"workerName"` // 收款人姓名
ReceiptChannel int `json:"receiptChannel"` // 收款渠道
WorkerAccount string `json:"workerAccount"` // 收款人账号
WorkerType int `json:"workerType"` // 职业者证件类型
IdNumber string `json:"idNumber"` // 职业者身份证号码
WorkerMobile string `json:"workerMobile"` // 职业者手机号码
DistributeAmount string `json:"distributeAmount"` // 打款金额
RequestNo string `json:"requestNo"` // 下发请求单号
CallbackUrl string `json:"callbackUrl"` // 下发结果回调地址
Remark string `json:"remark"` // 备注
WorkerContent string `json:"workerContent"` // 任务描述
WageStatement string `json:"wageStatement"` // 服务费说明
WorkTime string `json:"workTime"` // 服务时间
PositionId string `json:"positionId"` // 任务ID
WeChatAppId string `json:"weChatAppId"` // 微信下发指定AppID
Sign string `json:"sign"` // 签名
}

View File

@ -1 +1,10 @@
package response
// 自由职业者网签查询报文
type HYG10000001Resp struct {
WorkerId string `json:"workerId"`
AgreeState string `json:"agreeState"`
AgreeDesc string `json:"agreeDesc"`
IdCardFront string `json:"idCardFront"`
IdCardBack string `json:"idCardBack"`
}

View File

@ -1 +1,20 @@
package response
// 自由职业者详细信息查询报文
type HYG10000002Resp struct {
WorkerId string `json:"workerId"` // 自由职业者ID
WorkerName string `json:"workerName"` // 自由职业者名称
WorkerMobile string `json:"workerMobile"` // 自由职业者手机号
IdentNo string `json:"identNo"` // 自由职业者证件号
CertificateType int `json:"certificateType"` // 自由职业者证件类型
BankCardNo string `json:"bankCardNo"` // 收款账号
SignState int `json:"signState"` // 签约状态
SignTime string `json:"signTime"` // 签约时间
SignDesc string `json:"signDesc"` // 签约状态描述
VerifiedStatus int `json:"verifiedStatus"` // 实名认证状态
VerifiedTime string `json:"verifiedTime"` // 实名认证时间
VerifiedDesc string `json:"verifiedDesc"` // 实名认证描述
WorkerCfcaSignFlag bool `json:"workerCfcaSignFlag"` // 职业者签约方式
CreateTime string `json:"createTime"` // 创建时间
UpdateTime string `json:"updateTime"` // 最后更新时间
}

View File

@ -1 +1,7 @@
package response
// 下发(打款)报文
type HYG10010001Resp struct {
DistributeAmount string `json:"distributeAmount"` // 下发金额(与上送金额相同)
DistributeId string `json:"distributeId"` // 慧用工平台处理单号
}

View File

@ -308,7 +308,7 @@ func Init(r *gin.Engine) {
opVasPayGroup.POST("manual_unlock_wechat", middleware.JSONParamValidator(zoneproto.OpManualUnlockWechatParam{}), OpManualUnlockWechat)
extEsbGroup := r.Group("/ext/hvyogo")
extEsbGroup.POST("agree_callback", middleware.FORMParamValidator(hvyogoproto.HvyogoCallbackReq{}), middleware.RequestDecryptor(), HvyogoCallback)
extEsbGroup.POST("agree_callback", middleware.JSONParamValidator(hvyogoproto.HvyogoCallbackReq{}), middleware.RequestDecryptor(), HvyogoCallback)
// 验证码
opVeriCodeGroup := r.Group("/op/veri_code", PrepareOp())

View File

@ -0,0 +1,18 @@
package service
type EsbService struct {
RoutingTable map[string]string
}
func NewEsbService() *EsbService {
return new(EsbService)
}
func (s *EsbService) Init() (err error) {
}
// 发送消息
func (s *EsbService) SendMsg(msgNo string, msg string) (err error) {
}

View File

@ -0,0 +1,3 @@
package service
func (s *Service)