by Robin at 20240628

This commit is contained in:
Leufolium 2024-06-28 20:39:34 +08:00
parent d01ad4bdac
commit 213cc36149
2 changed files with 4 additions and 8 deletions

View File

@ -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)
}

View File

@ -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)
// =============================== 以下是服务,只允许内网调用 ===============================