add
zhangqian
2023-08-03 fdf30e2e17a7a3944142467720215e3c6a6550af
add
5个文件已修改
24 ■■■■ 已修改文件
api/v1/saleChance.go 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/response/common.go 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/v1/saleChance.go
@@ -104,7 +104,6 @@
    ctx.Ok()
}
// checkSaleChanceParams
// 检查销售机会参数
func checkSaleChanceParams(saleChance request.SaleChance) (int, model.SaleChance) {
@@ -191,7 +190,9 @@
//    @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
@@ -207,7 +208,7 @@
    }
    ctx.OkWithDetailed(response.SaleChanceResponse{
        List: saleChances,
        List:  saleChances,
        Count: int(total),
    })
}
}
docs/docs.go
@@ -7231,6 +7231,9 @@
                "code": {
                    "type": "integer"
                },
                "count": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
docs/swagger.json
@@ -7219,6 +7219,9 @@
                "code": {
                    "type": "integer"
                },
                "count": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
docs/swagger.yaml
@@ -129,6 +129,8 @@
    properties:
      code:
        type: integer
      count:
        type: integer
      data: {}
      msg:
        type: string
model/response/common.go
@@ -6,3 +6,10 @@
    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"`
}