Merge pull request 'by Robin at 20240628' (#574) from feat-IRONFANS-148-Robin into main
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/574
This commit is contained in:
commit
2bf04aac1b
|
@ -45,9 +45,7 @@ func ApiHvyogoWorkerFindDetail(ctx *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
ctx.Set("pending_data", data)
|
||||
ctx.Next()
|
||||
//ReplyOk(ctx, data)
|
||||
ReplyOk(ctx, data)
|
||||
}
|
||||
|
||||
func ApiHvyogoSingleDistribute(ctx *gin.Context) {
|
||||
|
@ -85,7 +83,5 @@ func ApiHvyogoWorkerUpdate(ctx *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
ctx.Set("pending_data", data)
|
||||
ctx.Next()
|
||||
//ReplyOk(ctx, data)
|
||||
ReplyOk(ctx, data)
|
||||
}
|
||||
|
|
|
@ -265,9 +265,9 @@ func Init(r *gin.Engine) {
|
|||
// 慧用工
|
||||
apiHvyogoGroup := r.Group("/api/hvyogo")
|
||||
apiHvyogoGroup.POST("query_agree_state", middleware.JSONParamValidator(hvyogoproto.ApiQueryAgreeStateReq{}), middleware.JwtAuthenticator(), ApiHvyogoQueryAgreeState)
|
||||
apiHvyogoGroup.POST("worker_find_detail", middleware.JSONParamValidator(hvyogoproto.ApiWorkerFindDetailReq{}), middleware.JwtAuthenticator(), ApiHvyogoWorkerFindDetail, middleware.ResponseEncryptor(), middleware.JsonEncoder())
|
||||
apiHvyogoGroup.POST("worker_find_detail", middleware.JSONParamValidator(hvyogoproto.ApiWorkerFindDetailReq{}), middleware.JwtAuthenticator(), ApiHvyogoWorkerFindDetail)
|
||||
apiHvyogoGroup.POST("single_distribute", middleware.JSONParamValidator(hvyogoproto.ApiSingleDistributeReq{}), middleware.JwtAuthenticator(), middleware.RequestDecryptor(), ApiHvyogoSingleDistribute)
|
||||
apiHvyogoGroup.POST("worker_update", middleware.JSONParamValidator(hvyogoproto.ApiWorkerUpdateReq{}), middleware.JwtAuthenticator(), middleware.RequestDecryptor(), ApiHvyogoWorkerUpdate, middleware.ResponseEncryptor(), middleware.JsonEncoder())
|
||||
apiHvyogoGroup.POST("worker_update", middleware.JSONParamValidator(hvyogoproto.ApiWorkerUpdateReq{}), middleware.JwtAuthenticator(), middleware.RequestDecryptor(), ApiHvyogoWorkerUpdate)
|
||||
|
||||
// =============================== 以下是服务,只允许内网调用 ===============================
|
||||
|
||||
|
|
Loading…
Reference in New Issue