add
wangpengfei
2023-07-12 5d2b172ae64789fc371afa8eb14a3ef2c0ba90ab
docs/swagger.yaml
@@ -278,6 +278,8 @@
        type: integer
      number:
        type: string
      quotation:
        $ref: '#/definitions/model.Quotation'
      quotationId:
        type: integer
      statusId:
@@ -364,6 +366,33 @@
        type: string
      start_time:
        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:
@@ -928,6 +957,11 @@
      start_time:
        type: string
    type: object
  request.AddPlan:
    properties:
      plan:
        $ref: '#/definitions/request.Plan'
    type: object
  request.AddPossibility:
    properties:
      name:
@@ -1278,6 +1312,27 @@
      username:
        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:
@@ -1744,6 +1799,13 @@
      start_time:
        type: string
    type: object
  request.UpdatePlan:
    properties:
      id:
        type: integer
      plan:
        $ref: '#/definitions/request.Plan'
    type: object
  request.UpdatePossibilities:
    properties:
      possibilities:
@@ -2206,6 +2268,13 @@
        type: integer
      total:
        type: integer
    type: object
  response.PlanResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Plan'
        type: array
    type: object
  response.PossibilityResponse:
    properties:
@@ -3406,6 +3475,79 @@
      summary: 更新主订单
      tags:
      - MasterOrder
  /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: