zhangqian
2023-08-26 5193dcb9336e853502baf8a539d3f45efebe2f86
docs/swagger.yaml
@@ -188,19 +188,16 @@
        description: 数据库密码
        type: string
      path:
        description: 服务器地址:端口
        type: string
      port:
        description: :端口
        type: string
      prefix:
        description: 全局表前缀,单独定义TableName则不生效
        type: string
      singular:
        description: 是否开启全局禁用复数,true表示开启
        type: boolean
      username:
        description: 数据库用户名
        description: 数据库密码
        type: string
    type: object
  config.Mysql:
@@ -231,19 +228,16 @@
        description: 数据库密码
        type: string
      path:
        description: 服务器地址:端口
        type: string
      port:
        description: :端口
        type: string
      prefix:
        description: 全局表前缀,单独定义TableName则不生效
        type: string
      singular:
        description: 是否开启全局禁用复数,true表示开启
        type: boolean
      username:
        description: 数据库用户名
        description: 数据库密码
        type: string
    type: object
  config.Oracle:
@@ -274,19 +268,16 @@
        description: 数据库密码
        type: string
      path:
        description: 服务器地址:端口
        type: string
      port:
        description: :端口
        type: string
      prefix:
        description: 全局表前缀,单独定义TableName则不生效
        type: string
      singular:
        description: 是否开启全局禁用复数,true表示开启
        type: boolean
      username:
        description: 数据库用户名
        description: 数据库密码
        type: string
    type: object
  config.Pgsql:
@@ -317,19 +308,16 @@
        description: 数据库密码
        type: string
      path:
        description: 服务器地址:端口
        type: string
      port:
        description: :端口
        type: string
      prefix:
        description: 全局表前缀,单独定义TableName则不生效
        type: string
      singular:
        description: 是否开启全局禁用复数,true表示开启
        type: boolean
      username:
        description: 数据库用户名
        description: 数据库密码
        type: string
    type: object
  config.Qiniu:
@@ -389,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:
@@ -414,6 +402,8 @@
        $ref: '#/definitions/config.Qiniu'
      redis:
        $ref: '#/definitions/config.Redis'
      sqlite:
        $ref: '#/definitions/config.Sqlite'
      system:
        $ref: '#/definitions/config.System'
      tencent-cos:
@@ -455,13 +445,10 @@
        description: 数据库密码
        type: string
      path:
        description: 服务器地址:端口
        type: string
      port:
        description: :端口
        type: string
      prefix:
        description: 全局表前缀,单独定义TableName则不生效
        type: string
      singular:
        description: 是否开启全局禁用复数,true表示开启
@@ -469,7 +456,47 @@
      type:
        type: string
      username:
        description: 数据库用户名
        description: 数据库密码
        type: string
    type: object
  config.Sqlite:
    properties:
      config:
        description: 高级配置
        type: string
      db-name:
        description: 数据库名
        type: string
      engine:
        default: InnoDB
        description: 数据库引擎,默认InnoDB
        type: string
      log-mode:
        description: 是否开启Gorm全局日志
        type: string
      log-zap:
        description: 是否通过zap写入日志文件
        type: boolean
      max-idle-conns:
        description: 空闲中的最大连接数
        type: integer
      max-open-conns:
        description: 打开到数据库的最大连接数
        type: integer
      password:
        description: 数据库密码
        type: string
      path:
        type: string
      port:
        type: string
      prefix:
        type: string
      singular:
        description: 是否开启全局禁用复数,true表示开启
        type: boolean
      username:
        description: 数据库密码
        type: string
    type: object
  config.System:
@@ -562,9 +589,6 @@
    type: object
  example.ExaCustomer:
    properties:
      createdAt:
        description: 创建时间
        type: string
      customerName:
        description: 客户名
        type: string
@@ -584,17 +608,11 @@
      sysUserId:
        description: 管理ID
        type: integer
      updatedAt:
        description: 更新时间
        type: string
    type: object
  example.ExaFile:
    properties:
      chunkTotal:
        type: integer
      createdAt:
        description: 创建时间
        type: string
      exaFileChunk:
        items:
          $ref: '#/definitions/example.ExaFileChunk'
@@ -610,15 +628,9 @@
        type: integer
      isFinish:
        type: boolean
      updatedAt:
        description: 更新时间
        type: string
    type: object
  example.ExaFileChunk:
    properties:
      createdAt:
        description: 创建时间
        type: string
      exaFileID:
        type: integer
      fileChunkNumber:
@@ -628,15 +640,9 @@
      id:
        description: 主键ID
        type: integer
      updatedAt:
        description: 更新时间
        type: string
    type: object
  example.ExaFileUploadAndDownload:
    properties:
      createdAt:
        description: 创建时间
        type: string
      id:
        description: 主键ID
        type: integer
@@ -649,36 +655,72 @@
      tag:
        description: 文件标签
        type: string
      updatedAt:
        description: 更新时间
        type: string
      url:
        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: 服务器地址
      deliveryDate:
        description: 交付日期
        type: string
      is-ssl:
        description: 是否SSL
        type: boolean
      nickname:
        description: 昵称
        type: string
      port:
        description: 端口
      id:
        description: 主键ID
        type: integer
      secret:
        description: 密钥
      name:
        description: 采购名称
        type: string
      to:
        description: 收件人:多个以英文逗号分隔
      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:
@@ -739,10 +781,20 @@
          type: integer
        type: array
    type: object
  request.IndustryList:
    properties:
      industries:
        items:
          $ref: '#/definitions/test.Industry'
        type: array
    type: object
  request.InitDB:
    properties:
      dbName:
        description: 数据库名
        type: string
      dbPath:
        description: sqlite数据库文件路径
        type: string
      dbType:
        description: 数据库类型
@@ -761,7 +813,6 @@
        type: string
    required:
    - dbName
    - userName
    type: object
  request.Login:
    properties:
@@ -834,9 +885,6 @@
      apiGroup:
        description: api组
        type: string
      createdAt:
        description: 创建时间
        type: string
      desc:
        description: 排序方式:升序false(默认)|降序true
        type: boolean
@@ -864,9 +912,6 @@
      path:
        description: api路径
        type: string
      updatedAt:
        description: 更新时间
        type: string
    type: object
  request.SetUserAuth:
    properties:
@@ -883,6 +928,20 @@
        type: array
      id:
        type: integer
    type: object
  request.SupplierStatus:
    properties:
      id:
        type: integer
      status:
        type: integer
    type: object
  request.SupplierTypeList:
    properties:
      supplierTypes:
        items:
          $ref: '#/definitions/test.SupplierType'
        type: array
    type: object
  request.SysAuthorityBtnReq:
    properties:
@@ -965,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:
@@ -1044,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:
@@ -1153,9 +1245,6 @@
      apiGroup:
        description: api组
        type: string
      createdAt:
        description: 创建时间
        type: string
      description:
        description: api中文描述
        type: string
@@ -1167,9 +1256,6 @@
        type: string
      path:
        description: api路径
        type: string
      updatedAt:
        description: 更新时间
        type: string
    type: object
  system.SysAuthority:
@@ -1209,9 +1295,6 @@
    type: object
  system.SysAutoCode:
    properties:
      createdAt:
        description: 创建时间
        type: string
      desc:
        type: string
      id:
@@ -1220,9 +1303,6 @@
      label:
        type: string
      packageName:
        type: string
      updatedAt:
        description: 更新时间
        type: string
    type: object
  system.SysBaseMenu:
@@ -1237,9 +1317,6 @@
        type: array
      component:
        description: 对应前端文件路径
        type: string
      createdAt:
        description: 创建时间
        type: string
      hidden:
        description: 是否在列表隐藏
@@ -1271,15 +1348,9 @@
      sort:
        description: 排序标记
        type: integer
      updatedAt:
        description: 更新时间
        type: string
    type: object
  system.SysBaseMenuBtn:
    properties:
      createdAt:
        description: 创建时间
        type: string
      desc:
        type: string
      id:
@@ -1289,15 +1360,9 @@
        type: string
      sysBaseMenuID:
        type: integer
      updatedAt:
        description: 更新时间
        type: string
    type: object
  system.SysBaseMenuParameter:
    properties:
      createdAt:
        description: 创建时间
        type: string
      id:
        description: 主键ID
        type: integer
@@ -1309,18 +1374,12 @@
      type:
        description: 地址栏携带参数为params还是query
        type: string
      updatedAt:
        description: 更新时间
        type: string
      value:
        description: 地址栏携带参数的值
        type: string
    type: object
  system.SysDictionary:
    properties:
      createdAt:
        description: 创建时间
        type: string
      desc:
        description: 描述
        type: string
@@ -1340,15 +1399,9 @@
      type:
        description: 字典名(英)
        type: string
      updatedAt:
        description: 更新时间
        type: string
    type: object
  system.SysDictionaryDetail:
    properties:
      createdAt:
        description: 创建时间
        type: string
      id:
        description: 主键ID
        type: integer
@@ -1364,9 +1417,6 @@
      sysDictionaryID:
        description: 关联标记
        type: integer
      updatedAt:
        description: 更新时间
        type: string
      value:
        description: 字典值
        type: integer
@@ -1387,9 +1437,6 @@
        type: array
      component:
        description: 对应前端文件路径
        type: string
      createdAt:
        description: 创建时间
        type: string
      hidden:
        description: 是否在列表隐藏
@@ -1423,9 +1470,6 @@
      sort:
        description: 排序标记
        type: integer
      updatedAt:
        description: 更新时间
        type: string
    type: object
  system.SysOperationRecord:
    properties:
@@ -1434,9 +1478,6 @@
        type: string
      body:
        description: 请求Body
        type: string
      createdAt:
        description: 创建时间
        type: string
      error_message:
        description: 错误信息
@@ -1462,9 +1503,6 @@
      status:
        description: 请求状态
        type: integer
      updatedAt:
        description: 更新时间
        type: string
      user:
        $ref: '#/definitions/system.SysUser'
      user_id:
@@ -1488,9 +1526,6 @@
      baseColor:
        description: 基础颜色
        type: string
      createdAt:
        description: 创建时间
        type: string
      email:
        description: 用户邮箱
        type: string
@@ -1512,9 +1547,6 @@
      sideMode:
        description: 用户侧边主题
        type: string
      updatedAt:
        description: 更新时间
        type: string
      userName:
        description: 用户登录名
        type: string
@@ -1526,6 +1558,98 @@
    properties:
      config:
        $ref: '#/definitions/config.Server'
    type: object
  test.Contract:
    properties:
      fileContent:
        items:
          type: integer
        type: array
      fileName:
        type: string
      id:
        description: 主键ID
        type: integer
      supplierID:
        type: integer
    type: object
  test.Industry:
    properties:
      id:
        description: 主键ID
        type: integer
      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:
        type: string
      accountName:
        type: string
      bank:
        type: string
      contact:
        type: string
      detailAddress:
        type: string
      email:
        type: string
      fileId:
        type: integer
      id:
        description: 主键ID
        type: integer
      industry:
        type: string
      name:
        type: string
      number:
        type: string
      phone:
        type: string
      responsiblePersonId:
        type: integer
      status:
        type: integer
      supplierType:
        type: string
      url:
        type: string
    type: object
  test.SupplierType:
    properties:
      id:
        description: 主键ID
        type: integer
      name:
        type: string
    type: object
info:
  contact: {}
@@ -2034,32 +2158,32 @@
  /autoCode/createPlug:
    post:
      consumes:
      - multipart/form-data
      - application/json
      parameters:
      - description: this is a test file
        in: formData
        name: plug
      - description: 创建插件模板
        in: body
        name: data
        required: true
        type: file
        schema:
          $ref: '#/definitions/system.SysAutoCode'
      produces:
      - application/json
      responses:
        "200":
          description: 安装插件成功
          description: 创建插件模板成功
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  items:
                    type: object
                  type: array
                  additionalProperties: true
                  type: object
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 安装插件
      summary: 创建插件模板
      tags:
      - AutoCode
  /autoCode/createTemp:
@@ -2301,6 +2425,37 @@
      summary: 获取当前数据库所有表
      tags:
      - AutoCode
  /autoCode/installPlugin:
    post:
      consumes:
      - multipart/form-data
      parameters:
      - description: this is a test file
        in: formData
        name: plug
        required: true
        type: file
      produces:
      - application/json
      responses:
        "200":
          description: 安装插件成功
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  items:
                    type: object
                  type: array
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 安装插件
      tags:
      - AutoCode
  /autoCode/preview:
    post:
      consumes:
@@ -2330,6 +2485,37 @@
      security:
      - ApiKeyAuth: []
      summary: 预览创建后的代码
      tags:
      - AutoCode
  /autoCode/pubPlug:
    get:
      consumes:
      - application/json
      parameters:
      - description: 打包插件
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/system.SysAutoCode'
      produces:
      - application/json
      responses:
        "200":
          description: 打包插件成功
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  additionalProperties: true
                  type: object
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 打包插件
      tags:
      - AutoCode
  /autoCode/rollback:
@@ -2467,6 +2653,219 @@
      summary: 获取权限列表
      tags:
      - Casbin
  /con/createContract:
    post:
      consumes:
      - multipart/form-data
      parameters:
      - description: 上传文件
        in: formData
        name: file
        required: true
        type: file
      - description: 文件名称
        in: formData
        name: name
        required: true
        type: string
      produces:
      - multipart/form-data
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 创建Contract
      tags:
      - Contract
  /con/deleteContract:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 删除Contract
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Contract'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"删除成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 删除Contract
      tags:
      - Contract
  /con/deleteContractByIds:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 批量删除Contract
        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: 批量删除Contract
      tags:
      - Contract
  /con/findContract:
    get:
      consumes:
      - application/json
      parameters:
      - collectionFormat: csv
        in: query
        items:
          type: integer
        name: fileContent
        type: array
      - in: query
        name: fileName
        type: string
      - description: 主键ID
        in: query
        name: id
        type: integer
      - in: query
        name: supplierID
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"查询成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 用id查询Contract
      tags:
      - Contract
  /con/getContractList:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: endCreatedAt
        type: string
      - collectionFormat: csv
        in: query
        items:
          type: integer
        name: fileContent
        type: array
      - in: query
        name: fileName
        type: string
      - description: 主键ID
        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
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取Contract列表
      tags:
      - Contract
  /con/previewContract:
    get:
      consumes:
      - application/json
      parameters:
      - collectionFormat: csv
        in: query
        items:
          type: integer
        name: fileContent
        type: array
      - in: query
        name: fileName
        type: string
      - description: 主键ID
        in: query
        name: id
        type: integer
      - in: query
        name: supplierID
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"预览成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 预览Contract
      tags:
      - Contract
  /con/updateContract:
    put:
      consumes:
      - application/json
      parameters:
      - description: 更新Contract
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Contract'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"更新成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 更新Contract
      tags:
      - Contract
  /customer/customer:
    delete:
      consumes:
@@ -2499,10 +2898,6 @@
      consumes:
      - application/json
      parameters:
      - description: 创建时间
        in: query
        name: createdAt
        type: string
      - description: 客户名
        in: query
        name: customerName
@@ -2523,10 +2918,6 @@
        in: query
        name: sysUserId
        type: integer
      - description: 更新时间
        in: query
        name: updatedAt
        type: string
      produces:
      - application/json
      responses:
@@ -2839,6 +3230,164 @@
      summary: 上传文件示例
      tags:
      - ExaFileUploadAndDownload
  /i/createIndustry:
    post:
      consumes:
      - application/json
      parameters:
      - description: 创建Industry
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Industry'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 创建Industry
      tags:
      - Industry
  /i/deleteIndustry:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 删除Industry
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Industry'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"删除成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 删除Industry
      tags:
      - Industry
  /i/deleteIndustryByIds:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 批量删除Industry
        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: 批量删除Industry
      tags:
      - Industry
  /i/findIndustry:
    get:
      consumes:
      - application/json
      parameters:
      - description: 主键ID
        in: query
        name: id
        type: integer
      - in: query
        name: name
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"查询成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 用id查询Industry
      tags:
      - Industry
  /i/getIndustryList:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: endCreatedAt
        type: string
      - description: 主键ID
        in: query
        name: id
        type: integer
      - description: 关键字
        in: query
        name: keyword
        type: string
      - in: query
        name: name
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - in: query
        name: startCreatedAt
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取Industry列表
      tags:
      - Industry
  /i/updateIndustry:
    put:
      consumes:
      - application/json
      parameters:
      - description: 更新Industry
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/request.IndustryList'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"更新成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 更新Industry
      tags:
      - Industry
  /init/checkdb:
    post:
      produces:
@@ -3163,6 +3712,856 @@
      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:
      - application/json
      parameters:
      - description: 修改Supplier状态
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/request.SupplierStatus'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"修改成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 修改Supplier状态
      tags:
      - Supplier
  /s/createSupplier:
    post:
      consumes:
      - application/json
      parameters:
      - description: 创建Supplier
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Supplier'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 创建Supplier
      tags:
      - Supplier
  /s/deleteSupplier:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 删除Supplier
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Supplier'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"删除成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 删除Supplier
      tags:
      - Supplier
  /s/deleteSupplierByIds:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 批量删除Supplier
        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: 批量删除Supplier
      tags:
      - Supplier
  /s/findSupplier:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: account
        type: string
      - in: query
        name: accountName
        type: string
      - in: query
        name: bank
        type: string
      - in: query
        name: contact
        type: string
      - in: query
        name: detailAddress
        type: string
      - in: query
        name: email
        type: string
      - in: query
        name: fileId
        type: integer
      - description: 主键ID
        in: query
        name: id
        type: integer
      - in: query
        name: industry
        type: string
      - in: query
        name: name
        type: string
      - in: query
        name: number
        type: string
      - in: query
        name: phone
        type: string
      - in: query
        name: responsiblePersonId
        type: integer
      - in: query
        name: status
        type: integer
      - in: query
        name: supplierType
        type: string
      - in: query
        name: url
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"查询成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 用id查询Supplier
      tags:
      - Supplier
  /s/getSupplierList:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: account
        type: string
      - in: query
        name: accountName
        type: string
      - in: query
        name: bank
        type: string
      - in: query
        name: contact
        type: string
      - in: query
        name: detailAddress
        type: string
      - in: query
        name: email
        type: string
      - in: query
        name: endCreatedAt
        type: string
      - in: query
        name: fileId
        type: integer
      - description: 主键ID
        in: query
        name: id
        type: integer
      - in: query
        name: industry
        type: string
      - description: 关键字
        in: query
        name: keyword
        type: string
      - 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: phone
        type: string
      - in: query
        name: responsiblePersonId
        type: integer
      - in: query
        name: startCreatedAt
        type: string
      - in: query
        name: status
        type: integer
      - in: query
        name: supplierType
        type: string
      - in: query
        name: url
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取Supplier列表
      tags:
      - Supplier
  /s/updateSupplier:
    put:
      consumes:
      - application/json
      parameters:
      - description: 更新Supplier
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.Supplier'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"更新成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 更新Supplier
      tags:
      - Supplier
  /st/createSupplierType:
    post:
      consumes:
      - application/json
      parameters:
      - description: 创建SupplierType
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.SupplierType'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 创建SupplierType
      tags:
      - SupplierType
  /st/deleteSupplierType:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 删除SupplierType
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/test.SupplierType'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"删除成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 删除SupplierType
      tags:
      - SupplierType
  /st/deleteSupplierTypeByIds:
    delete:
      consumes:
      - application/json
      parameters:
      - description: 批量删除SupplierType
        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: 批量删除SupplierType
      tags:
      - SupplierType
  /st/findSupplierType:
    get:
      consumes:
      - application/json
      parameters:
      - description: 主键ID
        in: query
        name: id
        type: integer
      - in: query
        name: name
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"查询成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 用id查询SupplierType
      tags:
      - SupplierType
  /st/getSupplierTypeList:
    get:
      consumes:
      - application/json
      parameters:
      - in: query
        name: endCreatedAt
        type: string
      - description: 主键ID
        in: query
        name: id
        type: integer
      - description: 关键字
        in: query
        name: keyword
        type: string
      - in: query
        name: name
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - in: query
        name: startCreatedAt
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"获取成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 分页获取SupplierType列表
      tags:
      - SupplierType
  /st/updateSupplierType:
    put:
      consumes:
      - application/json
      parameters:
      - description: 更新SupplierType
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/request.SupplierTypeList'
      produces:
      - application/json
      responses:
        "200":
          description: '{"success":true,"data":{},"msg":"更新成功"}'
          schema:
            type: string
      security:
      - ApiKeyAuth: []
      summary: 更新SupplierType
      tags:
      - SupplierType
  /sysDictionary/createSysDictionary:
    post:
      consumes:
@@ -3224,10 +4623,6 @@
      consumes:
      - application/json
      parameters:
      - description: 创建时间
        in: query
        name: createdAt
        type: string
      - description: 描述
        in: query
        name: desc
@@ -3247,10 +4642,6 @@
      - description: 字典名(英)
        in: query
        name: type
        type: string
      - description: 更新时间
        in: query
        name: updatedAt
        type: string
      produces:
      - application/json
@@ -3277,10 +4668,6 @@
      consumes:
      - application/json
      parameters:
      - description: 创建时间
        in: query
        name: createdAt
        type: string
      - description: 描述
        in: query
        name: desc
@@ -3312,10 +4699,6 @@
      - description: 字典名(英)
        in: query
        name: type
        type: string
      - description: 更新时间
        in: query
        name: updatedAt
        type: string
      produces:
      - application/json
@@ -3425,10 +4808,6 @@
      consumes:
      - application/json
      parameters:
      - description: 创建时间
        in: query
        name: createdAt
        type: string
      - description: 主键ID
        in: query
        name: id
@@ -3449,10 +4828,6 @@
        in: query
        name: sysDictionaryID
        type: integer
      - description: 更新时间
        in: query
        name: updatedAt
        type: string
      - description: 字典值
        in: query
        name: value
@@ -3482,10 +4857,6 @@
      consumes:
      - application/json
      parameters:
      - description: 创建时间
        in: query
        name: createdAt
        type: string
      - description: 主键ID
        in: query
        name: id
@@ -3518,10 +4889,6 @@
        in: query
        name: sysDictionaryID
        type: integer
      - description: 更新时间
        in: query
        name: updatedAt
        type: string
      - description: 字典值
        in: query
        name: value
@@ -3670,10 +5037,6 @@
        in: query
        name: body
        type: string
      - description: 创建时间
        in: query
        name: createdAt
        type: string
      - description: 错误信息
        in: query
        name: error_message
@@ -3706,10 +5069,6 @@
        in: query
        name: status
        type: integer
      - description: 更新时间
        in: query
        name: updatedAt
        type: string
      - description: 用户id
        in: query
        name: user_id
@@ -3746,10 +5105,6 @@
      - description: 请求Body
        in: query
        name: body
        type: string
      - description: 创建时间
        in: query
        name: createdAt
        type: string
      - description: 错误信息
        in: query
@@ -3795,10 +5150,6 @@
        in: query
        name: status
        type: integer
      - description: 更新时间
        in: query
        name: updatedAt
        type: string
      - description: 用户id
        in: query
        name: user_id