jiangshuai
2023-10-23 40202aef72d93a6fb3acabf719d121ea88534dd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package request
 
import "wms/constvar"
 
type GetOperationTypeList struct {
    PageInfo
    Keyword string `json:"keyword"`
}
 
type AddOperationType struct {
    Id                int                        `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
    Name              string                     `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"`     //仓库名称
    BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:基础作业类型"` //基础作业类型
    CompanyId         int                        `json:"companyId" gorm:"type:int;not null;comment:公司id"`               //公司id
    WarehouseId       int                        `json:"warehouseId" gorm:"type:int;not null;comment:仓库id"`             //仓库id
 
    DefaultLocationSrcId  int `json:"defaultLocationSrcId"   gorm:"type:int;not null;comment:默认源位置id"`  //默认源位置id
    DefaultLocationDestId int `json:"defaultLocationDestId"  gorm:"type:int;not null;comment:默认目标位置id"` //默认目标位置id
 
    PrintLabel                    bool                       `json:"printLabel" gorm:"column:print_label;type:tinyint;comment:打印标签"` //是否打印标签
    ReservationMethod             constvar.ReservationMethod `json:"reservationMethod" gorm:"column:reservation_method"`             //保留方式
    ReservationDaysBefore         int                        `json:"reservationDaysBefore" gorm:"type:int;"`                         //收货前几天
    ReservationDaysBeforePriority int                        `json:"ReservationDaysBeforePriority" gorm:"type:int;"`                 //在优先级的前几天
    ShowOperations                bool                       `json:"showOperations" gorm:"column:show_operations;type:int"`          //显示作业详情
    CreateBackorder               constvar.WhetherType       `json:"createBackorder" gorm:"column:create_backorder"`                 //创建欠单
    ReturnOperationTypeID         int                        `json:"returnOperationTypeID" gorm:"column:return_job_type_id"`         //退货类型ID
    Prefix                        string                     `json:"prefix" gorm:"type:varchar(255);comment:前缀"`                     //前缀
}
 
type UpdateOperationType struct {
    ID uint `gorm:"comment:主键ID;primaryKey;" json:"id"`
    AddOperationType
}
 
type ListTransfer struct {
    Keyword string `json:"keyword"`
}