操作excel 手动变比io资源。
文件模版配置表增加字段taleInfo
| | |
| | | return "", errors.New("读取excel模版失败:" + err.Error()) |
| | | } |
| | | readerCloser.Close() |
| | | defer f.Close() |
| | | |
| | | style, _ := f.NewStyle(&excelize.Style{ |
| | | Border: []excelize.Border{ |
| | |
| | | return "", errors.New("读取excel模版失败:" + err.Error()) |
| | | } |
| | | readerCloser.Close() |
| | | defer f.Close() |
| | | |
| | | style, _ := f.NewStyle(&excelize.Style{ |
| | | Border: []excelize.Border{ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/getClientList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "入库/出库" |
| | | ], |
| | | "summary": "获取物流公司列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/getLogisticCompanyList": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/getSupplierList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "入库/出库" |
| | | ], |
| | | "summary": "获取物流公司列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/list": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/getClientList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "入库/出库" |
| | | ], |
| | | "summary": "获取物流公司列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/getLogisticCompanyList": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/getSupplierList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "入库/出库" |
| | | ], |
| | | "summary": "获取物流公司列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/list": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | summary: 更改记录状态 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/operation/getClientList: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 获取物流公司列表 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/operation/getLogisticCompanyList: |
| | | get: |
| | | produces: |
| | |
| | | summary: 获取物流公司列表 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/operation/getSupplierList: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 获取物流公司列表 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/operation/list: |
| | | post: |
| | | parameters: |
| | |
| | | Name string `json:"name" gorm:"type:varchar(63);comment:模版名称"` |
| | | AttachmentId uint `json:"attachmentId" gorm:"comment:附件表外键"` |
| | | Attachment Attachment `json:"attachment" gorm:"foreignKey:AttachmentId;references:Id"` |
| | | TableInfo string `json:"tableInfo" gorm:"type:varchar(31);comment:表名"` |
| | | } |
| | | FileTemplateAttachmentSearch struct { |
| | | FileTemplateAttachment |