fix
wangpengfei
2023-08-02 7e0823fc3b352cfcbb4a2f21088c00db2c00c395
api/v1/serviceContract.go
@@ -154,8 +154,8 @@
//   @Tags      ServiceContract
//   @Summary   生成计划列表
//   @Produce   application/json
//   @Param      object   body      request.GetServiceContractList               true   "参数"
//   @Success   200   {object}   contextx.Response{data=response.ServiceContractsResponse}
//   @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
@@ -164,7 +164,7 @@
      return
   }
   serviceContracts, errCode := serviceContractService.GetServiceContractList(params.Page, params.PageSize, params.Keyword)
   serviceContracts, total, errCode := serviceContractService.GetServiceContractList(params.Page, params.PageSize, params.Keyword)
   if errCode != ecode.OK {
      ctx.Fail(errCode)
      return
@@ -172,6 +172,6 @@
   ctx.OkWithDetailed(response.ServiceContractsResponse{
      List:  serviceContracts,
      Count: len(serviceContracts),
      Count: int(total),
   })
}
}