From 038aa6802a08c7cb3e051f79087a79f20f1e36a3 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期一, 04 三月 2024 10:19:52 +0800 Subject: [PATCH] 服务合同字段修改 --- api/v1/assign.go | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/api/v1/assign.go b/api/v1/assign.go index 4889095..f7618e5 100644 --- a/api/v1/assign.go +++ b/api/v1/assign.go @@ -12,7 +12,7 @@ // Assign // // @Tags Assign -// @Summary 瀹℃牳 +// @Summary 鍒嗛厤 // @Produce application/json // @Param object body request.Assign true "鏌ヨ鍙傛暟" // @Success 200 {object} contextx.Response{} @@ -24,12 +24,7 @@ return } - if params.MemberId == 0 { - ctx.Fail(ecode.AssignWrongMemberId) - return - } - - if params.Id == 0 { + if len(params.Ids) == 0 { ctx.Fail(ecode.AssignWrongId) return } @@ -39,7 +34,7 @@ return } - errCode := assignService.Assign(params.MemberId, params.Id, params.Type) + errCode := assignService.Assign(params.MemberId, params.Ids, params.Type) if errCode != ecode.OK { ctx.Fail(errCode) return -- Gitblit v1.8.0