add
wangpengfei
2023-07-21 624d15a1baedef4b872dfea64331532c9ef31b4e
docs/swagger.yaml
@@ -1,21 +1,4 @@
definitions:
  constvar.CurrencyType:
    enum:
    - 1
    - 2
    - 3
    - 4
    type: integer
    x-enum-comments:
      CurrencyTypeCNY: 人民币
      CurrencyTypeEUR: 欧元
      CurrencyTypeGBP: 英镑
      CurrencyTypeUSD: 美元
    x-enum-varnames:
    - CurrencyTypeCNY
    - CurrencyTypeUSD
    - CurrencyTypeEUR
    - CurrencyTypeGBP
  constvar.SalesStatus:
    enum:
    - 1
@@ -327,6 +310,13 @@
          $ref: '#/definitions/model.Province'
        type: array
    type: object
  model.Currency:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.CustomerServiceSheet:
    properties:
      handleStatus:
@@ -634,7 +624,7 @@
      country_id:
        type: integer
      currency:
        $ref: '#/definitions/constvar.CurrencyType'
        type: integer
      detail_address:
        type: string
      disadvantages:
@@ -965,6 +955,13 @@
      name:
        type: string
    type: object
  model.Status:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SubOrder:
    properties:
      client:
@@ -1210,6 +1207,13 @@
      name:
        description: 国家名称
        type: string
    type: object
  request.AddCurrency:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddCustomerServiceSheet:
    properties:
@@ -2354,6 +2358,25 @@
        description: 国家名称
        type: string
    type: object
  request.UpdateCurrency:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateCurrencys:
    properties:
      currency:
        items:
          $ref: '#/definitions/request.UpdateCurrency'
        type: array
    required:
    - currency
    type: object
  request.UpdateCustomerServiceSheet:
    properties:
      handleStatus:
@@ -3292,6 +3315,13 @@
          $ref: '#/definitions/model.Country'
        type: array
    type: object
  response.CurrencyResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Currency'
        type: array
    type: object
  response.DataResponse:
    properties:
      accountId:
@@ -3328,6 +3358,11 @@
        description: 国家数据
        items:
          $ref: '#/definitions/model.Country'
        type: array
      currency:
        description: 币种
        items:
          $ref: '#/definitions/model.Currency'
        type: array
      department:
        description: 部门
@@ -3368,6 +3403,11 @@
        description: 工单类型
        items:
          $ref: '#/definitions/model.OrderType'
        type: array
      possibility:
        description: 可能性
        items:
          $ref: '#/definitions/model.Possibility'
        type: array
      province:
        description: 省份数据
@@ -3448,6 +3488,11 @@
        description: 解决率
        items:
          $ref: '#/definitions/model.SolveRate'
        type: array
      status:
        description: 状态
        items:
          $ref: '#/definitions/model.Status'
        type: array
      timely_rate:
        description: 及时率
@@ -4590,6 +4635,79 @@
      summary: 更新国家
      tags:
      - Country
  /api/currency/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddCurrency'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加币种
      tags:
      - Currency
  /api/currency/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:
      - Currency
  /api/currency/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.CurrencyResponse'
              type: object
      summary: 获取币种列表
      tags:
      - Currency
  /api/currency/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateCurrencys'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新币种
      tags:
      - Currency
  /api/customerServiceSheet/add:
    post:
      parameters: