fix
wangpengfei
2023-07-20 f7da9306eb62a7ccda30a002f2d4242c4e52cfa3
docs/swagger.yaml
@@ -60,6 +60,22 @@
      msg:
        type: string
    type: object
  model.Authority:
    properties:
      authorityName:
        description: 角色名
        type: string
      defaultRouter:
        description: 默认菜单(默认dashboard)
        type: string
      id:
        description: 角色ID
        type: integer
      menus:
        items:
          $ref: '#/definitions/model.Menu'
        type: array
    type: object
  model.City:
    properties:
      id:
@@ -79,12 +95,20 @@
        $ref: '#/definitions/model.City'
      city_id:
        type: integer
      client_level:
        $ref: '#/definitions/model.ClientLevel'
      client_level_id:
        type: integer
      client_origin:
        $ref: '#/definitions/model.ClientOrigin'
      client_origin_id:
        type: integer
      client_status:
        $ref: '#/definitions/model.ClientStatus'
      client_status_id:
        type: integer
      client_type:
        $ref: '#/definitions/model.ClientType'
      client_type_id:
        type: integer
      contacts:
@@ -266,6 +290,25 @@
      wechat:
        type: string
    type: object
  model.Contract:
    properties:
      clientId:
        type: integer
      file:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      quotation:
        $ref: '#/definitions/model.Quotation'
      quotationId:
        type: integer
      statusId:
        type: integer
    type: object
  model.Country:
    properties:
      id:
@@ -276,6 +319,30 @@
        items:
          $ref: '#/definitions/model.Province'
        type: array
    type: object
  model.CustomerServiceSheet:
    properties:
      handleStatus:
        type: integer
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      priority:
        type: integer
      serviceFollowupId:
        type: integer
      serviceMode:
        type: integer
    type: object
  model.Department:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.EnterpriseNature:
    properties:
@@ -293,10 +360,14 @@
    type: object
  model.FollowRecord:
    properties:
      client:
        $ref: '#/definitions/model.Client'
      client_id:
        type: integer
      client_status_id:
        type: integer
      contact:
        $ref: '#/definitions/model.Contact'
      contact_id:
        type: integer
      contact_information_id:
@@ -347,6 +418,51 @@
        type: string
      start_time:
        type: string
    type: object
  model.Menu:
    properties:
      children:
        items:
          $ref: '#/definitions/model.Menu'
        type: array
      id:
        description: 主键ID
        type: integer
      name:
        type: string
      parentId:
        type: integer
      path:
        type: string
      title:
        type: string
    type: object
  model.Plan:
    properties:
      clientId:
        type: integer
      content:
        type: string
      endTime:
        type: string
      file:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      salesDetails:
        $ref: '#/definitions/model.SalesDetails'
      salesDetailsId:
        type: integer
      startTime:
        type: string
      subOrder:
        $ref: '#/definitions/model.SubOrder'
      subOrderId:
        type: integer
    type: object
  model.Possibility:
    properties:
@@ -461,6 +577,8 @@
        type: integer
      currency:
        $ref: '#/definitions/constvar.CurrencyType'
      detail_address:
        type: string
      disadvantages:
        type: string
      expected_time:
@@ -497,6 +615,8 @@
        type: integer
      regular_customers_id:
        type: integer
      remark:
        type: string
      sale_stage_id:
        type: integer
      sale_type_id:
@@ -527,6 +647,41 @@
        type: integer
      name:
        type: string
    type: object
  model.SalesDetails:
    properties:
      address:
        type: string
      addressee:
        type: string
      clientId:
        type: integer
      conditions:
        type: string
      deliveryDate:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      phone:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      remark:
        type: string
      saleChanceId:
        type: integer
      saleType:
        type: integer
      signTime:
        type: string
      wechatOrderStatus:
        type: integer
    type: object
  model.SalesLeads:
    properties:
@@ -571,6 +726,54 @@
      sales_status:
        $ref: '#/definitions/constvar.SalesStatus'
    type: object
  model.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      id:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      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:
@@ -578,23 +781,127 @@
      name:
        type: string
    type: object
  model.ServiceContract:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      contractId:
        type: integer
      endTime:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      quotationId:
        type: integer
      remark:
        type: string
      saleChanceId:
        type: integer
      serviceTimes:
        type: integer
      signTime:
        type: string
      startTime:
        type: string
      statusId:
        type: integer
      terms:
        type: string
      typeId:
        type: integer
    type: object
  model.ServiceFeeManage:
    properties:
      client:
        $ref: '#/definitions/model.Client'
      client_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      latest_date:
        type: string
      member_id:
        type: integer
      remark:
        type: string
    type: object
  model.ServiceFollowup:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      customerServiceSheet:
        $ref: '#/definitions/model.CustomerServiceSheet'
      file:
        type: string
      id:
        type: integer
      isVisit:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      oldMemberId:
        type: integer
      planId:
        type: integer
      remark:
        type: string
      satisfaction:
        type: integer
      serviceId:
        type: integer
      solveRate:
        type: integer
      timelyRate:
        type: integer
    type: object
  model.SubOrder:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      masterOrderId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
    type: object
  model.User:
    properties:
      companyName:
        type: string
      createAt:
        description: 创建时间
        type: string
      authority:
        $ref: '#/definitions/model.Authority'
      authorityId:
        description: 用户角色ID
        type: integer
      departmentId:
        type: integer
      email:
        type: string
      enable:
        type: boolean
      headerImg:
        type: string
      id:
        type: string
      ip:
        type: string
        type: integer
      menuIds:
        description: 菜单ID列表
        items:
@@ -602,25 +909,27 @@
        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:
    properties:
      authorityName:
        type: string
      casbinInfos:
        items:
          $ref: '#/definitions/request.CasbinInfo'
        type: array
    type: object
  request.AddCity:
    properties:
@@ -770,11 +1079,46 @@
        description: 微信号
        type: string
    type: object
  request.AddContract:
    properties:
      client_id:
        type: integer
      file:
        type: string
      member_id:
        type: integer
      number:
        type: string
      quotation_id:
        type: integer
      status_id:
        type: integer
    type: object
  request.AddCountry:
    properties:
      name:
        description: 国家名称
        type: string
    type: object
  request.AddCustomerServiceSheet:
    properties:
      handleStatus:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      priority:
        type: integer
      serviceMode:
        type: integer
    type: object
  request.AddDepartment:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddEnterpriseNature:
    properties:
@@ -818,6 +1162,32 @@
        type: string
      start_time:
        type: string
    type: object
  request.AddOrderManage:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      file:
        type: string
      name:
        type: string
      number:
        type: string
      orderType:
        type: integer
      problemDescription:
        type: string
      reportSourceId:
        type: integer
      sourceSheet:
        type: integer
    type: object
  request.AddPlan:
    properties:
      plan:
        $ref: '#/definitions/request.Plan'
    type: object
  request.AddPossibility:
    properties:
@@ -893,6 +1263,8 @@
        type: integer
      currency:
        type: integer
      detail_address:
        type: string
      disadvantages:
        type: string
      expected_time:
@@ -923,6 +1295,8 @@
        type: integer
      regular_customers_id:
        type: integer
      remark:
        type: string
      sale_stage_id:
        type: integer
      sale_type_id:
@@ -951,6 +1325,11 @@
        type: string
    required:
    - name
    type: object
  request.AddSalesDetails:
    properties:
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.AddSalesLeads:
    properties:
@@ -987,12 +1366,101 @@
        description: 商机来源ID
        type: integer
    type: object
  request.AddSalesRefundRequest:
    properties:
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    type: object
  request.AddSalesReturnRequest:
    properties:
      salesReturn:
        $ref: '#/definitions/request.SalesReturn'
    type: object
  request.AddSalesSources:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddServiceContract:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      contractId:
        type: integer
      endTime:
        type: string
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      quotationId:
        type: integer
      remark:
        type: string
      saleChanceId:
        type: integer
      serviceTimes:
        type: integer
      signTime:
        type: string
      startTime:
        type: string
      statusId:
        type: integer
      terms:
        type: string
      typeId:
        type: integer
    type: object
  request.AddServiceFeeManage:
    properties:
      client_id:
        type: integer
      file:
        type: string
      latest_date:
        type: string
      member_id:
        type: integer
      remark:
        type: string
    type: object
  request.AddServiceFollowup:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      file:
        type: string
      isVisit:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      oldMemberId:
        type: integer
      planId:
        type: integer
      remark:
        type: string
      satisfaction:
        type: integer
      serviceId:
        type: integer
      solveRate:
        type: integer
      timelyRate:
        type: integer
    type: object
  request.AddStatus:
    properties:
@@ -1003,8 +1471,46 @@
    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:
      method:
        description: 方法
        type: string
      path:
        description: 路径
        type: string
    type: object
  request.ChangePasswordReq:
    properties:
@@ -1035,6 +1541,76 @@
      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:
@@ -1155,26 +1731,143 @@
        description: 用户名
        type: string
    type: object
  request.Plan:
    properties:
      clientId:
        type: integer
      content:
        type: string
      endTime:
        type: string
      file:
        type: string
      memberId:
        type: integer
      number:
        type: string
      salesDetailsId:
        type: integer
      startTime:
        type: string
      subOrderId:
        type: integer
    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:
    properties:
      address:
        type: string
      addressee:
        type: string
      clientId:
        type: integer
      conditions:
        type: string
      deliveryDate:
        type: string
      memberId:
        type: integer
      number:
        type: string
      phone:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      remark:
        type: string
      saleChanceId:
        type: integer
      saleType:
        type: integer
      signTime:
        type: string
      wechatOrderStatus:
        type: integer
    type: object
  request.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
    type: object
  request.SalesReturn:
    properties:
      clientId:
        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
  request.SetAuthorityMenu:
    properties:
      authorityId:
        type: integer
      menus:
        items:
          type: integer
        type: array
    type: object
  request.SetCity:
    properties:
@@ -1207,21 +1900,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:
@@ -1438,6 +2116,23 @@
        description: 微信号
        type: string
    type: object
  request.UpdateContract:
    properties:
      client_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      number:
        type: string
      quotation_id:
        type: integer
      status_id:
        type: integer
    type: object
  request.UpdateCountry:
    properties:
      id:
@@ -1446,6 +2141,40 @@
      name:
        description: 国家名称
        type: string
    type: object
  request.UpdateCustomerServiceSheet:
    properties:
      handleStatus:
        type: integer
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      priority:
        type: integer
      serviceMode:
        type: integer
    type: object
  request.UpdateDepartment:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateDepartmentList:
    properties:
      departments:
        items:
          $ref: '#/definitions/request.UpdateDepartment'
        type: array
    required:
    - departments
    type: object
  request.UpdateEnterpriseNature:
    properties:
@@ -1525,6 +2254,36 @@
        type: string
      start_time:
        type: string
    type: object
  request.UpdateOrderManage:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      file:
        type: string
      id:
        type: integer
      name:
        type: string
      number:
        type: string
      orderType:
        type: integer
      problemDescription:
        type: string
      reportSourceId:
        type: integer
      sourceSheet:
        type: integer
    type: object
  request.UpdatePlan:
    properties:
      id:
        type: integer
      plan:
        $ref: '#/definitions/request.Plan'
    type: object
  request.UpdatePossibilities:
    properties:
@@ -1658,6 +2417,8 @@
        type: integer
      currency:
        type: integer
      detail_address:
        type: string
      disadvantages:
        type: string
      expected_time:
@@ -1690,6 +2451,8 @@
        type: integer
      regular_customers_id:
        type: integer
      remark:
        type: string
      sale_stage_id:
        type: integer
      sale_type_id:
@@ -1745,6 +2508,13 @@
    required:
    - sale_types
    type: object
  request.UpdateSalesDetails:
    properties:
      id:
        type: integer
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.UpdateSalesLeads:
    properties:
      city_id:
@@ -1782,6 +2552,36 @@
        description: 商机来源ID
        type: integer
    type: object
  request.UpdateSalesRefundRequest:
    properties:
      id:
        type: integer
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    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
    type: object
  request.UpdateSalesSources:
    properties:
      id:
@@ -1798,6 +2598,93 @@
        items:
          $ref: '#/definitions/request.UpdateSalesSources'
        type: array
    type: object
  request.UpdateServiceContract:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      contractId:
        type: integer
      endTime:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      quotationId:
        type: integer
      remark:
        type: string
      saleChanceId:
        type: integer
      serviceTimes:
        type: integer
      signTime:
        type: string
      startTime:
        type: string
      statusId:
        type: integer
      terms:
        type: string
      typeId:
        type: integer
    type: object
  request.UpdateServiceFeeManage:
    properties:
      client:
        $ref: '#/definitions/request.Client'
      client_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      latest_date:
        type: string
      member_id:
        type: integer
      remark:
        type: string
    type: object
  request.UpdateServiceFollowup:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      file:
        type: string
      id:
        type: integer
      isVisit:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      oldMemberId:
        type: integer
      planId:
        type: integer
      remark:
        type: string
      satisfaction:
        type: integer
      serviceId:
        type: integer
      solveRate:
        type: integer
      timelyRate:
        type: integer
    type: object
  request.UpdateStatus:
    properties:
@@ -1884,11 +2771,118 @@
          $ref: '#/definitions/model.ContactDetail'
        type: array
    type: object
  response.ContractResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Contract'
        type: array
    type: object
  response.CountryResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Country'
        type: array
    type: object
  response.DataResponse:
    properties:
      city:
        description: 城市数据
        items:
          $ref: '#/definitions/model.City'
        type: array
      client_level:
        description: 客户等级
        items:
          $ref: '#/definitions/model.ClientLevel'
        type: array
      client_origin:
        description: 客户来源
        items:
          $ref: '#/definitions/model.ClientOrigin'
        type: array
      client_status:
        description: 客户状态
        items:
          $ref: '#/definitions/model.ClientStatus'
        type: array
      client_type:
        description: 客户类型
        items:
          $ref: '#/definitions/model.ClientType'
        type: array
      country:
        description: 国家数据
        items:
          $ref: '#/definitions/model.Country'
        type: array
      department:
        description: 部门
        items:
          $ref: '#/definitions/model.Department'
        type: array
      enterprise_nature:
        description: 企业性质
        items:
          $ref: '#/definitions/model.EnterpriseNature'
        type: array
      enterprise_scale:
        description: 企业规模
        items:
          $ref: '#/definitions/model.EnterpriseScale'
        type: array
      industry:
        description: 行业
        items:
          $ref: '#/definitions/model.Industry'
        type: array
      member:
        description: Member
        items:
          $ref: '#/definitions/model.User'
        type: array
      province:
        description: 省份数据
        items:
          $ref: '#/definitions/model.Province'
        type: array
      region:
        description: 区域数据
        items:
          $ref: '#/definitions/model.Region'
        type: array
      registered_capital:
        description: 注册资金
        items:
          $ref: '#/definitions/model.RegisteredCapital'
        type: array
      regular_customers:
        description: 老客户营销
        items:
          $ref: '#/definitions/model.RegularCustomers'
        type: array
      sale_stage:
        description: 销售阶段
        items:
          $ref: '#/definitions/model.SaleStage'
        type: array
      sale_type:
        description: 销售类型
        items:
          $ref: '#/definitions/model.SaleType'
        type: array
      sales_source:
        description: 商机来源
        items:
          $ref: '#/definitions/model.SalesSources'
        type: array
    type: object
  response.DepartmentResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Department'
        type: array
    type: object
  response.EnterpriseNatureResponse:
@@ -1935,6 +2929,13 @@
          $ref: '#/definitions/model.MasterOrder'
        type: array
    type: object
  response.MenuTreeResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Menu'
        type: array
    type: object
  response.PageResult:
    properties:
      list: {}
@@ -1944,6 +2945,13 @@
        type: integer
      total:
        type: integer
    type: object
  response.PlanResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Plan'
        type: array
    type: object
  response.PossibilityResponse:
    properties:
@@ -2001,6 +3009,13 @@
          $ref: '#/definitions/model.SaleType'
        type: array
    type: object
  response.SalesDetailsResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesDetails'
        type: array
    type: object
  response.SalesLeadsResponse:
    properties:
      list:
@@ -2008,11 +3023,53 @@
          $ref: '#/definitions/model.SalesLeads'
        type: array
    type: object
  response.SalesRefundResponse:
    properties:
      list:
        items:
          $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.ServiceContractsResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.ServiceContract'
        type: array
    type: object
  response.ServiceFeeManageResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.ServiceFeeManage'
        type: array
    type: object
  response.ServiceFollowupResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.ServiceFollowup'
        type: array
    type: object
  response.SubOrderResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SubOrder'
        type: array
    type: object
  response.UserResponse:
@@ -2023,6 +3080,52 @@
info:
  contact: {}
paths:
  /api/authority/add:
    post:
      consumes:
      - application/json
      parameters:
      - description: 查询参数
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/request.AddAuthority'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      security:
      - ApiKeyAuth: []
      summary: 创建角色
      tags:
      - Authority
  /api/authority/setMenuAuthority:
    post:
      consumes:
      - application/json
      parameters:
      - description: 设置角色资源权限
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/request.SetAuthorityMenu'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      security:
      - ApiKeyAuth: []
      summary: 设置角色菜单
      tags:
      - Authority
  /api/base/captcha:
    post:
      produces:
@@ -2103,6 +3206,11 @@
      - City
  /api/city/list:
    get:
      parameters:
      - description: 省份ID
        in: query
        name: province_id
        type: integer
      produces:
      - application/json
      responses:
@@ -2211,7 +3319,7 @@
      tags:
      - Client
  /api/client/update:
    post:
    put:
      parameters:
      - description: 查询参数
        in: body
@@ -2594,6 +3702,79 @@
      summary: 更新联系人
      tags:
      - Contact
  /api/contract/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加合同
      tags:
      - Contract
  /api/contract/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:
      - Contract
  /api/contract/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.ContractResponse'
              type: object
      summary: 获取合同列表
      tags:
      - Contract
  /api/contract/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新合同
      tags:
      - Contract
  /api/country/add:
    post:
      parameters:
@@ -2668,6 +3849,164 @@
      summary: 更新国家
      tags:
      - Country
  /api/customerServiceSheet/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddCustomerServiceSheet'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加客服单
      tags:
      - CustomerServiceSheet
  /api/customerServiceSheet/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:
      - CustomerServiceSheet
  /api/customerServiceSheet/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 获取客服单列表
      tags:
      - CustomerServiceSheet
  /api/customerServiceSheet/update/{id}:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateCustomerServiceSheet'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新客服单
      tags:
      - CustomerServiceSheet
  /api/data/getAllData:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.DataResponse'
              type: object
      summary: 获取所有数据
      tags:
      - Data
  /api/department/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddDepartment'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加部门
      tags:
      - Department
  /api/department/delete/{id}:
    delete:
      parameters:
      - description: 部门ID
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除部门
      tags:
      - Department
  /api/department/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.DepartmentResponse'
              type: object
      summary: 部门列表
      tags:
      - Department
  /api/department/update/{id}:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateDepartmentList'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新部门
      tags:
      - Department
  /api/enterpriseNature/add:
    post:
      parameters:
@@ -3050,6 +4389,172 @@
      summary: 更新主订单
      tags:
      - MasterOrder
  /api/menu/getMenu:
    get:
      parameters:
      - description: Authorization
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.MenuTreeResponse'
              type: object
      security:
      - ApiKeyAuth: []
      summary: 获取菜单树
      tags:
      - Menu
  /api/orderManage/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddOrderManage'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加订单
      tags:
      - OrderManage
  /api/orderManage/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:
      - OrderManage
  /api/orderManage/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 订单列表
      tags:
      - OrderManage
  /api/orderManage/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateOrderManage'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新订单
      tags:
      - OrderManage
  /api/plan/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddPlan'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加计划
      tags:
      - Plan
  /api/plan/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:
      - Plan
  /api/plan/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.PlanResponse'
              type: object
      summary: 获取计划列表
      tags:
      - Plan
  /api/plan/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdatePlan'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新计划
      tags:
      - Plan
  /api/possibility/add:
    post:
      parameters:
@@ -3162,6 +4667,12 @@
      - Province
  /api/province/list:
    get:
      parameters:
      - description: 国家ID
        in: query
        name: country_id
        required: true
        type: integer
      produces:
      - application/json
      responses:
@@ -3327,6 +4838,12 @@
      - Region
  /api/region/list:
    get:
      parameters:
      - description: 城市ID
        in: query
        name: city_id
        required: true
        type: integer
      produces:
      - application/json
      responses:
@@ -3740,6 +5257,79 @@
      summary: 更新销售类型
      tags:
      - SaleType
  /api/salesDetails/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesDetails'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售明细
      tags:
      - SalesDetails
  /api/salesDetails/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:
      - SalesDetails
  /api/salesDetails/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesDetailsResponse'
              type: object
      summary: 获取销售明细列表
      tags:
      - SalesDetails
  /api/salesDetails/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesDetails'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售明细
      tags:
      - SalesDetails
  /api/salesLeads/add:
    post:
      parameters:
@@ -3813,6 +5403,152 @@
      summary: 更新销售线索
      tags:
      - SalesLeads
  /api/salesRefund/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售退款
      tags:
      - SalesRefund
  /api/salesRefund/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:
      - SalesRefund
  /api/salesRefund/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesRefundResponse'
              type: object
      summary: 销售退款列表
      tags:
      - SalesRefund
  /api/salesRefund/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售退款
      tags:
      - SalesRefund
  /api/salesReturn/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesReturnRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售退货
      tags:
      - SalesReturn
  /api/salesReturn/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:
      - SalesReturn
  /api/salesReturn/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesReturnResponse'
              type: object
      summary: 获取销售退货列表
      tags:
      - SalesReturn
  /api/salesReturn/update/{id}:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesReturnRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售退货
      tags:
      - SalesReturn
  /api/salesSources/add:
    post:
      parameters:
@@ -3886,6 +5622,225 @@
      summary: 更新商机来源
      tags:
      - SalesSources
  /api/serviceContract/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddServiceContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加服务合同
      tags:
      - ServiceContract
  /api/serviceContract/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:
      - ServiceContract
  /api/serviceContract/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.ServiceContractsResponse'
              type: object
      summary: 服务合同列表
      tags:
      - ServiceContract
  /api/serviceContract/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateServiceContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新服务合同
      tags:
      - ServiceContract
  /api/serviceFeeManage/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddServiceFeeManage'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加服务费管理
      tags:
      - ServiceFeeManage
  /api/serviceFeeManage/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:
      - ServiceFeeManage
  /api/serviceFeeManage/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.ServiceFeeManageResponse'
              type: object
      summary: 服务费管理列表
      tags:
      - ServiceFeeManage
  /api/serviceFeeManage/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateServiceFeeManage'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新服务费管理
      tags:
      - ServiceFeeManage
  /api/serviceFollowup/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddServiceFollowup'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加服务跟进
      tags:
      - ServiceFollowup
  /api/serviceFollowup/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:
      - ServiceFollowup
  /api/serviceFollowup/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.ServiceFollowupResponse'
              type: object
      summary: 服务跟进列表
      tags:
      - ServiceFollowup
  /api/serviceFollowup/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateServiceFollowup'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新服务跟进
      tags:
      - ServiceFollowup
  /api/status/add:
    post:
      parameters:
@@ -3999,7 +5954,12 @@
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SubOrderResponse'
              type: object
      summary: 获取子订单列表
      tags:
      - SubOrder
@@ -4177,4 +6137,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"