fix
wangpengfei
2023-08-14 6acff3ce321e59b03e95fe7143ba45b0c48cd926
api/v1/contract.go
@@ -98,7 +98,6 @@
   ctx.Ok()
}
func checkContractParams(contract request.Contract) (errCode int, contractModel model.Contract) {
   //if contract.Number == "" {
   //   return ecode.InvalidParams, contractModel
@@ -135,14 +134,14 @@
      return
   }
   contracts, errCode := contractService.GetContractList(params.Page, params.PageSize, params.Keyword)
   contracts, total, errCode := contractService.GetContractList(params.Page, params.PageSize, params.SearchMap)
   if errCode != ecode.OK {
      ctx.Fail(errCode)
      return
   }
   ctx.OkWithDetailed(response.ContractResponse{
      List: contracts,
      Count: len(contracts),
      List:  contracts,
      Count: int(total),
   })
}