add
wangpengfei
2023-07-21 34c99ef40f26f8812610e7ca14c56825f9bf2c3c
docs/swagger.yaml
@@ -60,6 +60,13 @@
      msg:
        type: string
    type: object
  model.AccountId:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.Authority:
    properties:
      authorityName:
@@ -997,6 +1004,13 @@
        type: string
      uuid:
        type: string
    type: object
  request.AddAccountId:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddAuthority:
    properties:
@@ -2038,6 +2052,25 @@
        items:
          type: integer
        type: array
    type: object
  request.UpdateAccountId:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateAccountIds:
    properties:
      account_id:
        items:
          $ref: '#/definitions/request.UpdateAccountId'
        type: array
    required:
    - account_id
    type: object
  request.UpdateCities:
    properties:
@@ -3090,6 +3123,13 @@
    required:
    - timely_rate
    type: object
  response.AccountIdResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.AccountId'
        type: array
    type: object
  response.CityResponse:
    properties:
      list:
@@ -3155,6 +3195,11 @@
    type: object
  response.DataResponse:
    properties:
      accountId:
        description: 账户
        items:
          $ref: '#/definitions/model.AccountId'
        type: array
      city:
        description: 城市数据
        items:
@@ -3568,6 +3613,79 @@
info:
  contact: {}
paths:
  /api/accountId/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddAccountId'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加账户
      tags:
      - AccountId
  /api/accountId/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:
      - AccountId
  /api/accountId/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.AccountIdResponse'
              type: object
      summary: 获取账户列表
      tags:
      - AccountId
  /api/accountId/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateAccountIds'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新账户
      tags:
      - AccountId
  /api/authority/add:
    post:
      consumes: