New file |
| | |
| | | package constvar |
| | | |
| | | const ( |
| | | NumberPrefixOfReceipt = "skd" |
| | | ) |
| | |
| | | "model.Client": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "business_scope": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "model.CollectionProjection": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "created_at": { |
| | | "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | |
| | | "model.Contract": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "fileId": { |
| | | "description": "附件id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "moneyType": { |
| | | "description": "币种", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "paymentType": { |
| | |
| | | "$ref": "#/definitions/constvar.ReceiptSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "description": "退货状态id", |
| | | "type": "integer" |
| | | }, |
| | | "source": { |
| | | "$ref": "#/definitions/model.SalesDetails" |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "priorityLevel": { |
| | | "$ref": "#/definitions/model.PriorityLevel" |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "fileId": { |
| | | "description": "附件id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "moneyType": { |
| | | "description": "币种", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "paymentType": { |
| | |
| | | "$ref": "#/definitions/constvar.ReceiptSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "fileId": { |
| | | "description": "附件id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "moneyType": { |
| | | "description": "币种", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "paymentType": { |
| | |
| | | "$ref": "#/definitions/constvar.ReceiptSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "model.Client": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "business_scope": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "model.CollectionProjection": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "created_at": { |
| | | "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | |
| | | "model.Contract": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "fileId": { |
| | | "description": "附件id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "moneyType": { |
| | | "description": "币种", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "paymentType": { |
| | |
| | | "$ref": "#/definitions/constvar.ReceiptSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "description": "退货状态id", |
| | | "type": "integer" |
| | | }, |
| | | "source": { |
| | | "$ref": "#/definitions/model.SalesDetails" |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "priorityLevel": { |
| | | "$ref": "#/definitions/model.PriorityLevel" |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "fileId": { |
| | | "description": "附件id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "moneyType": { |
| | | "description": "币种", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "paymentType": { |
| | |
| | | "$ref": "#/definitions/constvar.ReceiptSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "fileId": { |
| | | "description": "附件id", |
| | | "type": "integer" |
| | |
| | | }, |
| | | "moneyType": { |
| | | "description": "币种", |
| | | "type": "string" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "paymentType": { |
| | |
| | | "$ref": "#/definitions/constvar.ReceiptSourceType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | type: object |
| | | model.Client: |
| | | properties: |
| | | _: |
| | | description: |- |
| | | The date when the item was deleted |
| | | example: 2023-08-10 15:48:25 |
| | | type: string |
| | | business_scope: |
| | | type: string |
| | | city: |
| | |
| | | type: object |
| | | model.CollectionProjection: |
| | | properties: |
| | | _: |
| | | description: |- |
| | | The date when the item was deleted |
| | | example: 2023-08-10 15:48:25 |
| | | type: string |
| | | created_at: |
| | | description: |- |
| | | The date when the item was created |
| | |
| | | type: object |
| | | model.Contract: |
| | | properties: |
| | | _: |
| | | description: |- |
| | | The date when the item was deleted |
| | | example: 2023-08-10 15:48:25 |
| | | type: string |
| | | client: |
| | | $ref: '#/definitions/model.Client' |
| | | clientId: |
| | |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | | createTime: |
| | | type: string |
| | | creatorName: |
| | | type: string |
| | | fileId: |
| | | description: 附件id |
| | | type: integer |
| | |
| | | type: integer |
| | | moneyType: |
| | | description: 币种 |
| | | type: string |
| | | number: |
| | | type: string |
| | | paymentType: |
| | | $ref: '#/definitions/model.PaymentType' |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.ReceiptSourceType' |
| | | description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单) |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | model.RefundMethod: |
| | | properties: |
| | |
| | | salesReturnStatusId: |
| | | description: 退货状态id |
| | | type: integer |
| | | source: |
| | | $ref: '#/definitions/model.SalesDetails' |
| | | sourceId: |
| | | description: 源单id |
| | | type: integer |
| | |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | number: |
| | | type: string |
| | | priorityLevel: |
| | | $ref: '#/definitions/model.PriorityLevel' |
| | | priorityLevelId: |
| | |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | | createTime: |
| | | type: string |
| | | creatorName: |
| | | type: string |
| | | fileId: |
| | | description: 附件id |
| | | type: integer |
| | |
| | | type: integer |
| | | moneyType: |
| | | description: 币种 |
| | | type: string |
| | | number: |
| | | type: string |
| | | paymentType: |
| | | $ref: '#/definitions/model.PaymentType' |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.ReceiptSourceType' |
| | | description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单) |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | request.AddRefundMethod: |
| | | properties: |
| | |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | | createTime: |
| | | type: string |
| | | creatorName: |
| | | type: string |
| | | fileId: |
| | | description: 附件id |
| | | type: integer |
| | |
| | | type: integer |
| | | moneyType: |
| | | description: 币种 |
| | | type: string |
| | | number: |
| | | type: string |
| | | paymentType: |
| | | $ref: '#/definitions/model.PaymentType' |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.ReceiptSourceType' |
| | | description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单) |
| | | updateTime: |
| | | type: string |
| | | type: object |
| | | request.UpdateRefundMethod: |
| | | properties: |
| | |
| | | Client Client `json:"client" gorm:"foreignKey:ClientId"` |
| | | SourceType constvar.SalesReturnSourceType `gorm:"source_type" json:"sourceType"` // 源单类型(1销售明细) |
| | | SourceId int `gorm:"source_id" json:"sourceId"` // 源单id |
| | | Source SalesDetails `gorm:"foreignKey:SourceId" json:"Source"` |
| | | Source SalesDetails `gorm:"foreignKey:SourceId" json:"source"` |
| | | Number string `json:"number" gorm:"column:number;type:varchar(255);comment:退货单号"` |
| | | Repository string `json:"repository" gorm:"column:repository;type:varchar(255);comment:仓库"` |
| | | MemberId int `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"` |