| | |
| | | // @Tags 收款计划管理 |
| | | // @Summary 获取收款计划列表 |
| | | // @Produce application/json |
| | | // @Param object query request.GetServiceCollectionPlanList true "参数" |
| | | // @Param object body request.GetServiceCollectionPlanList true "参数" |
| | | // @Success 200 {object} response.ListResponse{data=[]model.ServiceCollectionPlan} |
| | | // @Router /api/serviceCollectionPlan/list [get] |
| | | // @Router /api/serviceCollectionPlan/list [post] |
| | | func (s *ServiceCollectionPlanApi) List(c *gin.Context) { |
| | | var params request.GetServiceCollectionPlanList |
| | | ctx, ok := contextx.NewContext(c, ¶ms) |
| | |
| | | return |
| | | } |
| | | |
| | | serviceCollectionPlan, total, errCode := service.NewServiceCollectionPlanService().GetServiceCollectionPlanList(params.ServiceContractId) |
| | | serviceCollectionPlan, total, errCode := service.NewServiceCollectionPlanService().GetServiceCollectionPlanList(params.SourceType, params.SourceId) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | | return |