From 4df9a15d20b9e4ef25cd795a583e64c61943c915 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 03 八月 2023 11:17:45 +0800 Subject: [PATCH] 添加ignore --- api/v1/serviceContract.go | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/api/v1/serviceContract.go b/api/v1/serviceContract.go index 8cb3e92..cd5e4f6 100644 --- a/api/v1/serviceContract.go +++ b/api/v1/serviceContract.go @@ -26,7 +26,6 @@ if !ok { return } - errCode, serviceContract := checkServiceContractParams(params.ServiceContract) if errCode != ecode.OK { ctx.Fail(errCode) @@ -151,12 +150,12 @@ // List // -// @Tags ServiceContract -// @Summary 鐢熸垚璁″垝鍒楄〃 -// @Produce application/json -// @Param object body request.GetServiceContractList true "鍙傛暟" -// @Success 200 {object} contextx.Response{data=response.ServiceContractsResponse} -// @Router /api/serviceContract/list [post] +// @Tags ServiceContract +// @Summary 鐢熸垚璁″垝鍒楄〃 +// @Produce application/json +// @Param object body request.GetServiceContractList true "鍙傛暟" +// @Success 200 {object} contextx.Response{data=response.ServiceContractsResponse} +// @Router /api/serviceContract/list [post] func (con *ServiceContractApi) List(c *gin.Context) { var params request.GetServiceContractList ctx, ok := contextx.NewContext(c, ¶ms) @@ -164,7 +163,7 @@ return } - serviceContracts, total, errCode := serviceContractService.GetServiceContractList(params.Page, params.PageSize, params.Keyword) + serviceContracts, total, errCode := serviceContractService.GetServiceContractList(params.Page, params.PageSize, params.QueryClass, params.KeywordType, params.Keyword) if errCode != ecode.OK { ctx.Fail(errCode) return @@ -174,4 +173,4 @@ List: serviceContracts, Count: int(total), }) -} \ No newline at end of file +} -- Gitblit v1.8.0