| | |
| | | // @Security ApiKeyAuth |
| | | // @accept application/json |
| | | // @Produce application/json |
| | | // @Param id path int true "采购单ID" |
| | | // @Param data body purchaserequest.SubmitPurchase true "参数" |
| | | // @Success 200 {object} response.Response{msg=string} "提交采购单" |
| | | // @Router /purchase/submit [post] |
| | | func (e *PurchaseApi) Submit(c *gin.Context) { |
| | |
| | | // @Security ApiKeyAuth |
| | | // @accept application/json |
| | | // @Produce application/json |
| | | // @Param id path int true "采购单ID" true "采购单ID" |
| | | // @Param data body purchaserequest.SubmitPurchase true "参数" |
| | | // @Success 200 {object} response.Response{msg=string} "新版提交" |
| | | // @Router /purchase/newSubmit [post] |
| | | func (e *PurchaseApi) NewSubmit(c *gin.Context) { |
| | |
| | | "summary": "新版提交", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "summary": "提交采购单", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.SubmitPurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "status": { |
| | | "$ref": "#/definitions/purchase.OrderStatus" |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.UpdatePurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "summary": "新版提交", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "summary": "提交采购单", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "采购单ID", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | "description": "参数", |
| | | "name": "data", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/purchaserequest.SubmitPurchase" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.SubmitPurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "status": { |
| | | "$ref": "#/definitions/purchase.OrderStatus" |
| | | } |
| | | } |
| | | }, |
| | | "purchaserequest.UpdatePurchase": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | status: |
| | | type: integer |
| | | type: object |
| | | purchaserequest.SubmitPurchase: |
| | | properties: |
| | | id: |
| | | type: integer |
| | | status: |
| | | $ref: '#/definitions/purchase.OrderStatus' |
| | | type: object |
| | | purchaserequest.UpdatePurchase: |
| | | properties: |
| | | productList: |
| | |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - description: 采购单ID |
| | | in: path |
| | | name: id |
| | | - description: 参数 |
| | | in: body |
| | | name: data |
| | | required: true |
| | | type: integer |
| | | schema: |
| | | $ref: '#/definitions/purchaserequest.SubmitPurchase' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - description: 采购单ID |
| | | in: path |
| | | name: id |
| | | - description: 参数 |
| | | in: body |
| | | name: data |
| | | required: true |
| | | type: integer |
| | | schema: |
| | | $ref: '#/definitions/purchaserequest.SubmitPurchase' |
| | | produces: |
| | | - application/json |
| | | responses: |