by Robin at 20240628
This commit is contained in:
parent
d01ad4bdac
commit
213cc36149
|
@ -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