zhangqian
2023-08-26 5193dcb9336e853502baf8a539d3f45efebe2f86
docs/swagger.yaml
@@ -377,7 +377,7 @@
          $ref: '#/definitions/config.SpecializedDB'
        type: array
      email:
        $ref: '#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email'
        $ref: '#/definitions/srm_config.Email'
      excel:
        $ref: '#/definitions/config.Excel'
      hua-wei-obs:
@@ -659,29 +659,68 @@
        description: 文件地址
        type: string
    type: object
  github_com_flipped-aurora_gin-vue-admin_server_config.Email:
  purchase.Purchase:
    properties:
      from:
        description: 发件人  你自己要发邮件的邮箱
      contact:
        description: 联系人
        type: string
      host:
        description: 服务器地址 例如 smtp.qq.com  请前往QQ或者你要发邮件的邮箱查看其smtp协议
      deliveryDate:
        description: 交付日期
        type: string
      is-ssl:
        description: 是否SSL   是否开启SSL
        type: boolean
      nickname:
        description: 昵称    发件人昵称 通常为自己的邮箱
        type: string
      port:
        description: 端口     请前往QQ或者你要发邮件的邮箱查看其smtp协议 大多为 465
      id:
        description: 主键ID
        type: integer
      secret:
        description: 密钥    用于登录的密钥 最好不要用邮箱密码 去邮箱smtp申请一个用于登录的密钥
      name:
        description: 采购名称
        type: string
      to:
        description: 收件人:多个以英文逗号分隔 例:a@qq.com b@qq.com 正式开发中请把此项目作为参数使用
      phone:
        description: 联系人电话
        type: string
      purchaseTypeId:
        description: 采购类型id
        type: integer
      remark:
        description: 备注
        type: string
      signingDate:
        description: 签约日期
        type: string
      supplierId:
        description: 供应商id
        type: integer
    type: object
  purchase.PurchaseProducts:
    properties:
      amount:
        description: 采购数量
        type: number
      id:
        description: 主键ID
        type: integer
      price:
        description: 采购单价
        type: number
      productId:
        description: 产品id
        type: integer
      purchaseId:
        description: 采购id
        type: integer
      remark:
        description: 描述
        type: string
      total:
        description: 采购总价
        type: number
    type: object
  purchaserequest.AddPurchase:
    properties:
      productList:
        items:
          $ref: '#/definitions/purchase.PurchaseProducts'
        type: array
      purchase:
        $ref: '#/definitions/purchase.Purchase'
    type: object
  request.AddMenuAuthorityInfo:
    properties:
@@ -740,6 +779,13 @@
      ids:
        items:
          type: integer
        type: array
    type: object
  request.IndustryList:
    properties:
      industries:
        items:
          $ref: '#/definitions/test.Industry'
        type: array
    type: object
  request.InitDB:
@@ -890,6 +936,13 @@
      status:
        type: integer
    type: object
  request.SupplierTypeList:
    properties:
      supplierTypes:
        items:
          $ref: '#/definitions/test.SupplierType'
        type: array
    type: object
  request.SysAuthorityBtnReq:
    properties:
      authorityId:
@@ -971,6 +1024,15 @@
          $ref: '#/definitions/request.CasbinInfo'
        type: array
    type: object
  response.PurchaseResponse:
    properties:
      productList:
        items:
          $ref: '#/definitions/purchase.PurchaseProducts'
        type: array
      purchase:
        $ref: '#/definitions/purchase.Purchase'
    type: object
  response.Response:
    properties:
      code:
@@ -1050,6 +1112,30 @@
    properties:
      user:
        $ref: '#/definitions/system.SysUser'
    type: object
  srm_config.Email:
    properties:
      from:
        description: 发件人  你自己要发邮件的邮箱
        type: string
      host:
        description: 服务器地址 例如 smtp.qq.com  请前往QQ或者你要发邮件的邮箱查看其smtp协议
        type: string
      is-ssl:
        description: 是否SSL   是否开启SSL
        type: boolean
      nickname:
        description: 昵称    发件人昵称 通常为自己的邮箱
        type: string
      port:
        description: 端口     请前往QQ或者你要发邮件的邮箱查看其smtp协议 大多为 465
        type: integer
      secret:
        description: 密钥    用于登录的密钥 最好不要用邮箱密码 去邮箱smtp申请一个用于登录的密钥
        type: string
      to:
        description: 收件人:多个以英文逗号分隔 例:a@qq.com b@qq.com 正式开发中请把此项目作为参数使用
        type: string
    type: object
  system.AutoCodeStruct:
    properties:
@@ -1495,6 +1581,32 @@
      name:
        type: string
    type: object
  test.Product:
    properties:
      deliveryTime:
        type: integer
      id:
        description: 主键ID
        type: integer
      maximumStock:
        type: integer
      minimumStock:
        type: integer
      name:
        type: string
      number:
        type: string
      productType:
        type: string
      purchasePrice:
        type: number
      remark:
        type: string
      shippingDuration:
        type: integer
      unit:
        type: string
    type: object
  test.Supplier:
    properties:
      account:
@@ -1509,8 +1621,8 @@
        type: string
      email:
        type: string
      file:
        type: string
      fileId:
        type: integer
      id:
        description: 主键ID
        type: integer
@@ -2703,9 +2815,6 @@
      consumes:
      - application/json
      parameters:
      - in: query
        name: endCreatedAt
        type: string
      - collectionFormat: csv
        in: query
        items:
@@ -2719,21 +2828,6 @@
        in: query
        name: id
        type: integer
      - description: 关键字
        in: query
        name: keyword
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - in: query
        name: startCreatedAt
        type: string
      - in: query
        name: supplierID
        type: integer
@@ -3281,7 +3375,7 @@
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Industry'
          $ref: '#/definitions/request.IndustryList'
      produces:
      - application/json
      responses:
@@ -3618,6 +3712,433 @@
      summary: 更新菜单
      tags:
      - Menu
  /p/createProduct:
    post:
      consumes:
      - application/json
      parameters:
      - description: 创建Product
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Product'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 创建Product
      tags:
      - Product
  /p/deleteProduct:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 删除Product
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Product'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"删除成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 删除Product
      tags:
      - Product
  /p/deleteProductByIds:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 批量删除Product
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/request.IdsReq'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"批量删除成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 批量删除Product
      tags:
      - Product
  /p/findProduct:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: deliveryTime
        type: integer
      - description: 主键ID
        in: query
        name: id
        type: integer
      - in: query
        name: maximumStock
        type: integer
      - in: query
        name: minimumStock
        type: integer
      - in: query
        name: name
        type: string
      - in: query
        name: number
        type: string
      - in: query
        name: productType
        type: string
      - in: query
        name: purchasePrice
        type: number
      - in: query
        name: remark
        type: string
      - in: query
        name: shippingDuration
        type: integer
      - in: query
        name: unit
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"查询成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 用id查询Product
      tags:
      - Product
  /p/getProductList:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: deliveryTime
        type: integer
      - in: query
        name: endCreatedAt
        type: string
      - description: 主键ID
        in: query
        name: id
        type: integer
      - description: 关键字
        in: query
        name: keyword
        type: string
      - in: query
        name: maximumStock
        type: integer
      - in: query
        name: minimumStock
        type: integer
      - in: query
        name: name
        type: string
      - in: query
        name: number
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - in: query
        name: productType
        type: string
      - in: query
        name: purchasePrice
        type: number
      - in: query
        name: remark
        type: string
      - in: query
        name: shippingDuration
        type: integer
      - in: query
        name: startCreatedAt
        type: string
      - in: query
        name: unit
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取Product列表
      tags:
      - Product
  /p/getProductListFromGrpc:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: deliveryTime
        type: integer
      - in: query
        name: endCreatedAt
        type: string
      - description: 主键ID
        in: query
        name: id
        type: integer
      - description: 关键字
        in: query
        name: keyword
        type: string
      - in: query
        name: maximumStock
        type: integer
      - in: query
        name: minimumStock
        type: integer
      - in: query
        name: name
        type: string
      - in: query
        name: number
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - in: query
        name: productType
        type: string
      - in: query
        name: purchasePrice
        type: number
      - in: query
        name: remark
        type: string
      - in: query
        name: shippingDuration
        type: integer
      - in: query
        name: startCreatedAt
        type: string
      - in: query
        name: unit
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取Product列表
      tags:
      - Product
  /p/updateProduct:
    put:
      consumes:
      - application/json
      parameters:
      - description: 更新Product
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Product'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"更新成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 更新Product
      tags:
      - Product
  /purchase/purchase:
    post:
      consumes:
      - application/json
      parameters:
      - description: 采购单用户名, 采购单手机号码
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/purchaserequest.AddPurchase'
      produces:
      - application/json
      responses:
        "200":
          description: 创建采购单
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 创建采购单
      tags:
      - Purchase
    put:
      consumes:
      - application/json
      parameters:
      - description: 采购单ID, 采购单信息
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/purchaserequest.AddPurchase'
      produces:
      - application/json
      responses:
        "200":
          description: 更新采购单信息
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 更新采购单信息
      tags:
      - Purchase
  /purchase/purchase/{id}:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 删除采购单
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 删除采购单
      tags:
      - Purchase
    get:
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 获取单一采购单信息,返回包括采购单详情
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.PurchaseResponse'
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 获取单一采购单信息
      tags:
      - Purchase
  /purchase/purchaseList:
    get:
      consumes:
      - application/json
      parameters:
      - description: 关键字
        in: query
        name: keyword
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 分页获取权限采购单列表,返回包括列表,总数,页码,每页数量
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.PageResult'
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 分页获取权限采购单列表
      tags:
      - Purchase
  /s/changeSupplierStatus:
    post:
      consumes:
@@ -3734,8 +4255,8 @@
        name: email
        type: string
      - in: query
        name: file
        type: string
        name: fileId
        type: integer
      - description: 主键ID
        in: query
        name: id
@@ -3803,8 +4324,8 @@
        name: endCreatedAt
        type: string
      - in: query
        name: file
        type: string
        name: fileId
        type: integer
      - description: 主键ID
        in: query
        name: id
@@ -4028,7 +4549,7 @@
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.SupplierType'
          $ref: '#/definitions/request.SupplierTypeList'
      produces:
      - application/json
      responses: