| | |
| | | ctx.Ok() |
| | | } |
| | | |
| | | |
| | | // checkSaleChanceParams |
| | | // 检查销售机会参数 |
| | | func checkSaleChanceParams(saleChance request.SaleChance) (int, model.SaleChance) { |
| | |
| | | // @Summary 销售机会列表 |
| | | // @Produce application/json |
| | | // @Param object body request.GetSaleChanceList true "参数" |
| | | // @Success 200 {object} contextx.Response{data=response.SaleChanceResponse} |
| | | // |
| | | // @Success 200 {object} contextx.Response{data=response.SaleChanceResponse} |
| | | // |
| | | // @Router /api/saleChance/list [post] |
| | | func (con *SaleChanceApi) List(c *gin.Context) { |
| | | var params request.GetSaleChanceList |
| | |
| | | } |
| | | |
| | | ctx.OkWithDetailed(response.SaleChanceResponse{ |
| | | List: saleChances, |
| | | List: saleChances, |
| | | Count: int(total), |
| | | }) |
| | | } |
| | | } |
| | |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "count": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "count": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | |
| | | properties: |
| | | code: |
| | | type: integer |
| | | count: |
| | | type: integer |
| | | data: {} |
| | | msg: |
| | | type: string |
| | |
| | | Page int `json:"page"` |
| | | PageSize int `json:"pageSize"` |
| | | } |
| | | |
| | | type ListResponse struct { |
| | | Code int `json:"code"` |
| | | Msg string `json:"msg"` |
| | | Data interface{} `json:"data"` |
| | | Count int64 `json:"count"` |
| | | } |