add
wangpengfei
2023-07-12 6bb983c0766c26583493a956f255f87c742db59e
docs/swagger.yaml
@@ -528,6 +528,41 @@
      name:
        type: string
    type: object
  model.SalesDetails:
    properties:
      address:
        type: string
      addressee:
        type: string
      clientId:
        type: integer
      conditions:
        type: string
      deliveryDate:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      phone:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      remark:
        type: string
      saleChanceId:
        type: integer
      saleType:
        type: integer
      signTime:
        type: string
      wechatOrderStatus:
        type: integer
    type: object
  model.SalesLeads:
    properties:
      city:
@@ -571,12 +606,54 @@
      sales_status:
        $ref: '#/definitions/constvar.SalesStatus'
    type: object
  model.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      id:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
    type: object
  model.SalesSources:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SubOrder:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      masterOrderId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
    type: object
  model.User:
    properties:
@@ -952,6 +1029,11 @@
    required:
    - name
    type: object
  request.AddSalesDetails:
    properties:
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.AddSalesLeads:
    properties:
      city_id:
@@ -986,6 +1068,16 @@
      sales_sources_id:
        description: 商机来源ID
        type: integer
    type: object
  request.AddSalesRefundRequest:
    properties:
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    type: object
  request.AddSalesReturnRequest:
    properties:
      salesReturn:
        $ref: '#/definitions/request.SalesReturn'
    type: object
  request.AddSalesSources:
    properties:
@@ -1175,6 +1267,83 @@
      userName:
        example: 用户名
        type: string
    type: object
  request.SalesDetails:
    properties:
      address:
        type: string
      addressee:
        type: string
      clientId:
        type: integer
      conditions:
        type: string
      deliveryDate:
        type: string
      memberId:
        type: integer
      number:
        type: string
      phone:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      remark:
        type: string
      saleChanceId:
        type: integer
      saleType:
        type: integer
      signTime:
        type: string
      wechatOrderStatus:
        type: integer
    type: object
  request.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
    type: object
  request.SalesReturn:
    properties:
      clientId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      repository:
        type: string
      returnDate:
        type: string
      status:
        type: integer
    type: object
  request.SetCity:
    properties:
@@ -1745,6 +1914,13 @@
    required:
    - sale_types
    type: object
  request.UpdateSalesDetails:
    properties:
      id:
        type: integer
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.UpdateSalesLeads:
    properties:
      city_id:
@@ -1780,6 +1956,36 @@
        type: integer
      sales_sources_id:
        description: 商机来源ID
        type: integer
    type: object
  request.UpdateSalesRefundRequest:
    properties:
      id:
        type: integer
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    type: object
  request.UpdateSalesReturnRequest:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      repository:
        type: string
      returnDate:
        type: string
      status:
        type: integer
    type: object
  request.UpdateSalesSources:
@@ -2001,6 +2207,13 @@
          $ref: '#/definitions/model.SaleType'
        type: array
    type: object
  response.SalesDetailsResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesDetails'
        type: array
    type: object
  response.SalesLeadsResponse:
    properties:
      list:
@@ -2008,11 +2221,25 @@
          $ref: '#/definitions/model.SalesLeads'
        type: array
    type: object
  response.SalesRefundResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesRefund'
        type: array
    type: object
  response.SalesSourceResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesSources'
        type: array
    type: object
  response.SubOrderResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SubOrder'
        type: array
    type: object
  response.UserResponse:
@@ -3740,6 +3967,79 @@
      summary: 更新销售类型
      tags:
      - SaleType
  /api/salesDetails/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesDetails'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售明细
      tags:
      - SalesDetails
  /api/salesDetails/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除销售明细
      tags:
      - SalesDetails
  /api/salesDetails/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesDetailsResponse'
              type: object
      summary: 获取销售明细列表
      tags:
      - SalesDetails
  /api/salesDetails/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesDetails'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售明细
      tags:
      - SalesDetails
  /api/salesLeads/add:
    post:
      parameters:
@@ -3813,6 +4113,147 @@
      summary: 更新销售线索
      tags:
      - SalesLeads
  /api/salesRefund/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售退款
      tags:
      - SalesRefund
  /api/salesRefund/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除销售退款
      tags:
      - SalesRefund
  /api/salesRefund/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesRefundResponse'
              type: object
      summary: 销售退款列表
      tags:
      - SalesRefund
  /api/salesRefund/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售退款
      tags:
      - SalesRefund
  /api/salesReturn/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesReturnRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售退货
      tags:
      - SalesReturn
  /api/salesReturn/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除销售退货
      tags:
      - SalesReturn
  /api/salesReturn/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 获取销售退货列表
      tags:
      - SalesReturn
  /api/salesReturn/update/{id}:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesReturnRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售退货
      tags:
      - SalesReturn
  /api/salesSources/add:
    post:
      parameters:
@@ -3999,7 +4440,12 @@
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SubOrderResponse'
              type: object
      summary: 获取子订单列表
      tags:
      - SubOrder