| | |
| | |
|
| | | // 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)
|
| | |
| | | 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
|