| | |
| | | util.ResponseFormat(c, code.RequestParamError, "查找失败") |
| | | return |
| | | } |
| | | for _, location := range list { |
| | | location.JointName = location.ParentId + "/" + location.Name |
| | | } |
| | | |
| | | util.ResponseFormatList(c, code.Success, list, int(total)) |
| | | } |
| | |
| | | "description": "位置名称", |
| | | "type": "string" |
| | | }, |
| | | "nextCount": { |
| | | "description": "下次盘点", |
| | | "type": "string" |
| | | }, |
| | | "notes": { |
| | | "description": "外部备注", |
| | | "type": "string" |
| | | }, |
| | | "parentId": { |
| | | "description": "上级id", |
| | | "type": "string" |
| | | }, |
| | | "recentlyCount": { |
| | | "description": "最近盘点", |
| | | "type": "string" |
| | | }, |
| | | "replenishLocation": { |
| | |
| | | "description": "默认源位置id", |
| | | "type": "integer" |
| | | }, |
| | | "earlyOperations": { |
| | | "description": "预填写作业详情", |
| | | "type": "boolean" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "prefix": { |
| | | "description": "前缀", |
| | | "type": "string" |
| | | }, |
| | | "printLabel": { |
| | |
| | | Description: "", |
| | | InfoInstanceName: "swagger", |
| | | SwaggerTemplate: docTemplate, |
| | | LeftDelim: "{{", |
| | | RightDelim: "}}", |
| | | } |
| | | |
| | | func init() { |
| | |
| | | "description": "位置名称", |
| | | "type": "string" |
| | | }, |
| | | "nextCount": { |
| | | "description": "下次盘点", |
| | | "type": "string" |
| | | }, |
| | | "notes": { |
| | | "description": "外部备注", |
| | | "type": "string" |
| | | }, |
| | | "parentId": { |
| | | "description": "上级id", |
| | | "type": "string" |
| | | }, |
| | | "recentlyCount": { |
| | | "description": "最近盘点", |
| | | "type": "string" |
| | | }, |
| | | "replenishLocation": { |
| | |
| | | "description": "默认源位置id", |
| | | "type": "integer" |
| | | }, |
| | | "earlyOperations": { |
| | | "description": "预填写作业详情", |
| | | "type": "boolean" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "prefix": { |
| | | "description": "前缀", |
| | | "type": "string" |
| | | }, |
| | | "printLabel": { |
| | | "description": "是否打印标签", |
| | | "type": "boolean" |
| | |
| | | name: |
| | | description: 位置名称 |
| | | type: string |
| | | nextCount: |
| | | description: 下次盘点 |
| | | type: string |
| | | notes: |
| | | description: 外部备注 |
| | | type: string |
| | | parentId: |
| | | description: 上级id |
| | | type: string |
| | | recentlyCount: |
| | | description: 最近盘点 |
| | | type: string |
| | | replenishLocation: |
| | | description: 是否补充位置 |
| | |
| | | defaultLocationSrcId: |
| | | description: 默认源位置id |
| | | type: integer |
| | | earlyOperations: |
| | | description: 预填写作业详情 |
| | | type: boolean |
| | | id: |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | prefix: |
| | | description: 前缀 |
| | | type: string |
| | | printLabel: |
| | | description: 是否打印标签 |
| | | type: boolean |
| | |
| | | Notes string `json:"notes" gorm:"type:varchar(255);comment:外部备注"` //外部备注 |
| | | RecentlyCount string `json:"recentlyCount" gorm:"type:varchar(255);comment:最近盘点"` //最近盘点 |
| | | NextCount string `json:"nextCount" gorm:"type:varchar(255);comment:下次盘点"` //下次盘点 |
| | | JointName string `json:"jointName" gorm:"-"` //拼接名称 |
| | | } |
| | | |
| | | LocationSearch struct { |