zhangqian
2023-08-05 1d8f07d32634854a07379479a760ba387a53314c
docs/swagger.yaml
@@ -1,4 +1,16 @@
definitions:
  constvar.BankAccountKeywordType:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - BankAccountKeywordCustomerName
  constvar.BankAccountQueryClass:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - BankAccountQueryClassExpireLessThen60Days
  constvar.FaqKeywordType:
    enum:
    - ""
@@ -11,6 +23,30 @@
    type: string
    x-enum-varnames:
    - FaqQueryClassExpireLessThen60Days
  constvar.PaymentTypeKeywordType:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - PaymentTypeKeywordCustomerName
  constvar.PaymentTypeQueryClass:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - PaymentTypeQueryClassExpireLessThen60Days
  constvar.ReceiptKeywordType:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - ReceiptKeywordCustomerName
  constvar.ReceiptQueryClass:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - ReceiptQueryClassExpireLessThen60Days
  constvar.SalesStatus:
    enum:
    - 1
@@ -167,6 +203,13 @@
        items:
          $ref: '#/definitions/model.Menu'
        type: array
    type: object
  model.BankAccount:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.City:
    properties:
@@ -598,6 +641,13 @@
      name:
        type: string
    type: object
  model.PaymentType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.Plan:
    properties:
      clientId:
@@ -702,6 +752,41 @@
        type: integer
      name:
        type: string
    type: object
  model.Receipt:
    properties:
      bankAccountId:
        description: 账户id
        type: integer
      clientId:
        description: 客户id
        type: integer
      fileId:
        description: 附件id
        type: integer
      id:
        type: integer
      moneyType:
        description: 币种
        type: string
      paymentTypeId:
        description: 收款方式ID
        type: integer
      principalId:
        description: 负责人id
        type: integer
      receiptDate:
        description: 收款日期
        type: string
      remark:
        description: 备注
        type: string
      sourceId:
        description: 源单id
        type: integer
      sourceType:
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
        type: integer
    type: object
  model.RefundMethod:
    properties:
@@ -1021,7 +1106,7 @@
      percent:
        description: 比例
        type: number
      principal:
      principalId:
        description: 收款负责人ID
        type: integer
      remark:
@@ -1358,6 +1443,13 @@
          $ref: '#/definitions/request.CasbinInfo'
        type: array
    type: object
  request.AddBankAccount:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.AddCity:
    properties:
      name:
@@ -1653,6 +1745,13 @@
    required:
    - name
    type: object
  request.AddPaymentType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.AddPlan:
    properties:
      plan:
@@ -1705,6 +1804,41 @@
        type: string
    required:
    - name
    type: object
  request.AddReceipt:
    properties:
      bankAccountId:
        description: 账户id
        type: integer
      clientId:
        description: 客户id
        type: integer
      fileId:
        description: 附件id
        type: integer
      id:
        type: integer
      moneyType:
        description: 币种
        type: string
      paymentTypeId:
        description: 收款方式ID
        type: integer
      principalId:
        description: 负责人id
        type: integer
      receiptDate:
        description: 收款日期
        type: string
      remark:
        description: 备注
        type: string
      sourceId:
        description: 源单id
        type: integer
      sourceType:
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
        type: integer
    type: object
  request.AddRefundMethod:
    properties:
@@ -2801,6 +2935,13 @@
    required:
    - account_id
    type: object
  request.UpdateBankAccount:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.UpdateCities:
    properties:
      cities:
@@ -3267,6 +3408,13 @@
    required:
    - order_type
    type: object
  request.UpdatePaymentType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.UpdatePlan:
    properties:
      id:
@@ -3358,6 +3506,41 @@
        type: array
    required:
    - quotation_status
    type: object
  request.UpdateReceipt:
    properties:
      bankAccountId:
        description: 账户id
        type: integer
      clientId:
        description: 客户id
        type: integer
      fileId:
        description: 附件id
        type: integer
      id:
        type: integer
      moneyType:
        description: 币种
        type: string
      paymentTypeId:
        description: 收款方式ID
        type: integer
      principalId:
        description: 负责人id
        type: integer
      receiptDate:
        description: 收款日期
        type: string
      remark:
        description: 备注
        type: string
      sourceId:
        description: 源单id
        type: integer
      sourceType:
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
        type: integer
    type: object
  request.UpdateRefundMethod:
    properties:
@@ -3715,7 +3898,7 @@
      percent:
        description: 比例
        type: number
      principal:
      principalId:
        description: 收款负责人ID
        type: integer
      remark:
@@ -4838,6 +5021,107 @@
      summary: 设置角色菜单
      tags:
      - Authority
  /api/bankAccount/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddBankAccount'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加银行账户
      tags:
      - 银行账户管理
  /api/bankAccount/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:
      - 银行账户管理
  /api/bankAccount/list:
    get:
      parameters:
      - in: query
        name: keyword
        type: string
      - enum:
        - ""
        in: query
        name: keywordType
        type: string
        x-enum-varnames:
        - BankAccountKeywordCustomerName
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - enum:
        - ""
        in: query
        name: queryClass
        type: string
        x-enum-varnames:
        - BankAccountQueryClassExpireLessThen60Days
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.ListResponse'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.BankAccount'
                  type: array
              type: object
      summary: 获取银行账户列表
      tags:
      - 银行账户管理
  /api/bankAccount/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateBankAccount'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新银行账户
      tags:
      - 银行账户管理
  /api/base/captcha:
    post:
      produces:
@@ -6691,6 +6975,107 @@
      summary: 更新工单类型
      tags:
      - OrderType
  /api/paymentType/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddPaymentType'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加支付方式
      tags:
      - 支付方式管理
  /api/paymentType/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:
      - 支付方式管理
  /api/paymentType/list:
    get:
      parameters:
      - in: query
        name: keyword
        type: string
      - enum:
        - ""
        in: query
        name: keywordType
        type: string
        x-enum-varnames:
        - PaymentTypeKeywordCustomerName
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - enum:
        - ""
        in: query
        name: queryClass
        type: string
        x-enum-varnames:
        - PaymentTypeQueryClassExpireLessThen60Days
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.ListResponse'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.PaymentType'
                  type: array
              type: object
      summary: 获取支付方式列表
      tags:
      - 支付方式管理
  /api/paymentType/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdatePaymentType'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新支付方式
      tags:
      - 支付方式管理
  /api/plan/add:
    post:
      parameters:
@@ -7170,6 +7555,107 @@
      summary: 更新报价单状态
      tags:
      - QuotationStatus
  /api/receipt/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddReceipt'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加收款单
      tags:
      - 收款单管理
  /api/receipt/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:
      - 收款单管理
  /api/receipt/list:
    get:
      parameters:
      - in: query
        name: keyword
        type: string
      - enum:
        - ""
        in: query
        name: keywordType
        type: string
        x-enum-varnames:
        - ReceiptKeywordCustomerName
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - enum:
        - ""
        in: query
        name: queryClass
        type: string
        x-enum-varnames:
        - ReceiptQueryClassExpireLessThen60Days
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.ListResponse'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.Receipt'
                  type: array
              type: object
      summary: 获取收款单列表
      tags:
      - 收款单管理
  /api/receipt/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateReceipt'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新收款单
      tags:
      - 收款单管理
  /api/refundMethod/add:
    post:
      parameters: