fix
wangpengfei
2023-07-20 25fcc66e4c844306489dcfec6880004157a2dff7
docs/swagger.yaml
@@ -404,6 +404,8 @@
    type: object
  model.MasterOrder:
    properties:
      client:
        $ref: '#/definitions/model.Client'
      client_id:
        type: integer
      end_time:
@@ -577,6 +579,8 @@
        type: integer
      currency:
        $ref: '#/definitions/constvar.CurrencyType'
      detail_address:
        type: string
      disadvantages:
        type: string
      expected_time:
@@ -613,6 +617,8 @@
        type: integer
      regular_customers_id:
        type: integer
      remark:
        type: string
      sale_stage_id:
        type: integer
      sale_type_id:
@@ -650,6 +656,8 @@
        type: string
      addressee:
        type: string
      client:
        $ref: '#/definitions/model.Client'
      clientId:
        type: integer
      conditions:
@@ -747,7 +755,37 @@
      refundMethod:
        type: string
    type: object
  model.SalesReturn:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      repository:
        type: string
      returnDate:
        type: string
      status:
        type: integer
    type: object
  model.SalesSources:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.Satisfaction:
    properties:
      id:
        type: integer
@@ -845,6 +883,8 @@
    type: object
  model.SubOrder:
    properties:
      client:
        $ref: '#/definitions/model.Client'
      clientId:
        type: integer
      id:
@@ -867,21 +907,14 @@
      authorityId:
        description: 用户角色ID
        type: integer
      companyName:
        type: string
      createAt:
        description: 创建时间
        type: string
      departmentId:
        type: integer
      email:
        type: string
      enable:
        type: boolean
      headerImg:
        type: string
      id:
        type: string
      ip:
        type: string
        type: integer
      menuIds:
        description: 菜单ID列表
        items:
@@ -889,24 +922,17 @@
        type: array
      nickName:
        type: string
      parentId:
        type: string
      parentName:
        type: string
      phone:
        type: string
      port:
        type: string
      pos:
        type: string
      status:
        type: integer
      updateAt:
        description: 更新时间
      realName:
        type: string
      userType:
        $ref: '#/definitions/constvar.UserType'
      username:
        type: string
      uuid:
        type: string
    type: object
  request.AddAuthority:
@@ -1144,7 +1170,7 @@
      member_id:
        type: integer
      money:
        type: string
        type: number
      number:
        type: string
      start_time:
@@ -1250,6 +1276,8 @@
        type: integer
      currency:
        type: integer
      detail_address:
        type: string
      disadvantages:
        type: string
      expected_time:
@@ -1280,6 +1308,8 @@
        type: integer
      regular_customers_id:
        type: integer
      remark:
        type: string
      sale_stage_id:
        type: integer
      sale_type_id:
@@ -1366,6 +1396,13 @@
    required:
    - name
    type: object
  request.AddSatisfaction:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddServiceContract:
    properties:
      clientId:
@@ -1405,16 +1442,77 @@
    type: object
  request.AddServiceFeeManage:
    properties:
      client_id:
      business_scope:
        description: 经营范围
        type: string
      city_id:
        type: integer
      client_level_id:
        description: 客户等级ID
        type: integer
      client_origin_id:
        description: 客户来源ID
        type: integer
      client_status_id:
        description: 客户状态ID
        type: integer
      client_type_id:
        description: 客户类型ID
        type: integer
      contact:
        $ref: '#/definitions/request.Contact'
      country_id:
        type: integer
      detail_address:
        description: 详细地址
        type: string
      enterprise_nature_id:
        description: 企业性质
        type: integer
      enterprise_scale_id:
        description: 企业规模
        type: integer
      file:
        type: string
      industry_id:
        description: 所属行业
        type: integer
      latest_date:
        type: string
      member_id:
        type: integer
      remark:
      latest_service_time:
        description: 最晚服务时间
        type: string
      member_id:
        description: 销售负责人ID
        type: integer
      name:
        description: 公司名称
        type: string
      next_visit_time:
        description: 下次回访时间
        type: string
      number:
        description: 公司编号
        type: string
      province_id:
        type: integer
      region_id:
        type: integer
      registered_capital_id:
        description: 注册资金
        type: integer
      registration_time:
        description: 注册时间
        type: string
      remark:
        description: 备注
        type: string
      representative:
        description: 法人代表
        type: string
      service_member_id:
        description: 服务负责人ID
        type: integer
    type: object
  request.AddServiceFollowup:
    properties:
@@ -1454,8 +1552,37 @@
    type: object
  request.AddSubOrder:
    properties:
      subOrder:
        $ref: '#/definitions/request.SubOrder'
      clientId:
        type: integer
      masterOrderId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      product:
        items:
          $ref: '#/definitions/model.Product'
        type: array
    type: object
  request.AddVetting:
    properties:
      opinion:
        type: string
      status:
        type: integer
      userId:
        type: integer
      vettingId:
        type: integer
      vettingType:
        type: integer
    required:
    - opinion
    - status
    - userId
    - vettingId
    - vettingType
    type: object
  request.CasbinInfo:
    properties:
@@ -1495,76 +1622,6 @@
      pos:
        description: 用户岗位
        type: string
    type: object
  request.Client:
    properties:
      business_scope:
        description: 经营范围
        type: string
      city_id:
        type: integer
      client_level_id:
        description: 客户等级ID
        type: integer
      client_origin_id:
        description: 客户来源ID
        type: integer
      client_status_id:
        description: 客户状态ID
        type: integer
      client_type_id:
        description: 客户类型ID
        type: integer
      contact:
        $ref: '#/definitions/request.Contact'
      country_id:
        type: integer
      detail_address:
        description: 详细地址
        type: string
      enterprise_nature_id:
        description: 企业性质
        type: integer
      enterprise_scale_id:
        description: 企业规模
        type: integer
      industry_id:
        description: 所属行业
        type: integer
      latest_service_time:
        description: 最晚服务时间
        type: string
      member_id:
        description: 销售负责人ID
        type: integer
      name:
        description: 公司名称
        type: string
      next_visit_time:
        description: 下次回访时间
        type: string
      number:
        description: 公司编号
        type: string
      province_id:
        type: integer
      region_id:
        type: integer
      registered_capital_id:
        description: 注册资金
        type: integer
      registration_time:
        description: 注册时间
        type: string
      remark:
        description: 备注
        type: string
      representative:
        description: 法人代表
        type: string
      service_member_id:
        description: 服务负责人ID
        type: integer
    type: object
  request.Contact:
    properties:
@@ -1708,23 +1765,33 @@
    type: object
  request.Register:
    properties:
      authorityId:
        description: 用户角色ID
        type: integer
      departmentId:
        type: integer
      email:
        example: 电子邮箱
        type: string
      headerImg:
        example: 头像链接
        type: string
      id:
        type: string
      nickName:
        example: 昵称
        type: string
      passWord:
        example: 密码
      password:
        type: string
      phone:
        example: 电话号码
        type: string
      userName:
        example: 用户名
      pos:
        type: string
      rePassword:
        description: 确认密码
        type: string
      realName:
        type: string
      userType:
        $ref: '#/definitions/constvar.UserType'
      username:
        type: string
    type: object
  request.SalesDetails:
@@ -1844,21 +1911,6 @@
        description: 地区ID列表
        items:
          type: integer
        type: array
    type: object
  request.SubOrder:
    properties:
      clientId:
        type: integer
      masterOrderId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      product:
        items:
          $ref: '#/definitions/model.Product'
        type: array
    type: object
  request.UpdateCities:
@@ -2208,7 +2260,7 @@
      member_id:
        type: integer
      money:
        type: string
        type: number
      number:
        type: string
      start_time:
@@ -2376,6 +2428,8 @@
        type: integer
      currency:
        type: integer
      detail_address:
        type: string
      disadvantages:
        type: string
      expected_time:
@@ -2408,6 +2462,8 @@
        type: integer
      regular_customers_id:
        type: integer
      remark:
        type: string
      sale_stage_id:
        type: integer
      sale_type_id:
@@ -2516,26 +2572,10 @@
    type: object
  request.UpdateSalesReturnRequest:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      repository:
        type: string
      returnDate:
        type: string
      status:
        type: integer
      salesReturn:
        $ref: '#/definitions/request.SalesReturn'
    type: object
  request.UpdateSalesSources:
    properties:
@@ -2553,6 +2593,25 @@
        items:
          $ref: '#/definitions/request.UpdateSalesSources'
        type: array
    type: object
  request.UpdateSatisfaction:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateSatisfactions:
    properties:
      satisfactions:
        items:
          $ref: '#/definitions/request.UpdateSatisfaction'
        type: array
    required:
    - satisfactions
    type: object
  request.UpdateServiceContract:
    properties:
@@ -2595,20 +2654,77 @@
    type: object
  request.UpdateServiceFeeManage:
    properties:
      client:
        $ref: '#/definitions/request.Client'
      client_id:
      business_scope:
        description: 经营范围
        type: string
      city_id:
        type: integer
      client_level_id:
        description: 客户等级ID
        type: integer
      client_origin_id:
        description: 客户来源ID
        type: integer
      client_status_id:
        description: 客户状态ID
        type: integer
      client_type_id:
        description: 客户类型ID
        type: integer
      contact:
        $ref: '#/definitions/request.Contact'
      country_id:
        type: integer
      detail_address:
        description: 详细地址
        type: string
      enterprise_nature_id:
        description: 企业性质
        type: integer
      enterprise_scale_id:
        description: 企业规模
        type: integer
      file:
        type: string
      id:
        type: integer
      industry_id:
        description: 所属行业
        type: integer
      latest_date:
        type: string
      latest_service_time:
        description: 最晚服务时间
        type: string
      member_id:
        type: integer
      name:
        description: 公司名称
        type: string
      next_visit_time:
        description: 下次回访时间
        type: string
      number:
        description: 公司编号
        type: string
      province_id:
        type: integer
      region_id:
        type: integer
      registered_capital_id:
        description: 注册资金
        type: integer
      registration_time:
        description: 注册时间
        type: string
      remark:
        type: string
      representative:
        description: 法人代表
        type: string
      service_member_id:
        description: 服务负责人ID
        type: integer
    type: object
  request.UpdateServiceFollowup:
    properties:
@@ -2772,6 +2888,11 @@
        items:
          $ref: '#/definitions/model.Country'
        type: array
      department:
        description: 部门
        items:
          $ref: '#/definitions/model.Department'
        type: array
      enterprise_nature:
        description: 企业性质
        items:
@@ -2786,6 +2907,11 @@
        description: 行业
        items:
          $ref: '#/definitions/model.Industry'
        type: array
      member:
        description: Member
        items:
          $ref: '#/definitions/model.User'
        type: array
      province:
        description: 省份数据
@@ -2975,11 +3101,25 @@
          $ref: '#/definitions/model.SalesRefund'
        type: array
    type: object
  response.SalesReturnResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesReturn'
        type: array
    type: object
  response.SalesSourceResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesSources'
        type: array
    type: object
  response.SatisfactionResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Satisfaction'
        type: array
    type: object
  response.ServiceContractsResponse:
@@ -5459,11 +5599,16 @@
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesReturnResponse'
              type: object
      summary: 获取销售退货列表
      tags:
      - SalesReturn
  /api/salesReturn/update/{id}:
  /api/salesReturn/update:
    put:
      parameters:
      - description: 查询参数
@@ -5555,6 +5700,79 @@
      summary: 更新商机来源
      tags:
      - SalesSources
  /api/satisfaction/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSatisfaction'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加满意度
      tags:
      - Satisfaction
  /api/satisfaction/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:
      - Satisfaction
  /api/satisfaction/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SatisfactionResponse'
              type: object
      summary: 满意度列表
      tags:
      - Satisfaction
  /api/satisfaction/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSatisfactions'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新满意度
      tags:
      - Satisfaction
  /api/serviceContract/add:
    post:
      parameters:
@@ -6070,4 +6288,23 @@
      summary: 设置用户信息
      tags:
      - User
  /api/vetting/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddVetting'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加审批
      tags:
      - Vetting
swagger: "2.0"