zhangqian
2023-08-07 4b63908ad085bc570623f7b0c0fd397b2ae7a80d
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, &params)
@@ -164,7 +163,7 @@
      return
   }
   serviceContracts, 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
@@ -172,6 +171,6 @@
   ctx.OkWithDetailed(response.ServiceContractsResponse{
      List:  serviceContracts,
      Count: len(serviceContracts),
      Count: int(total),
   })
}