zhangqian
2023-09-12 ccc4c924d81c3f8201e7a6c783a9a7148b21670d
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
package request
 
import "wms/constvar"
 
type GetJobTypeList struct {
    PageInfo
    Keyword string `json:"keyword"`
}
 
type AddJobType struct {
    Id          int                  `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
    Name        string               `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"` //仓库名称
    BaseJobType constvar.BaseJobType `json:"baseJobType" 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"`                 //创建欠单
    ReturnJobTypeID               int                        `json:"returnJobTypeID" gorm:"column:return_job_type_id"`               //退货类型ID
}
 
type UpdateJobType struct {
    ID uint `gorm:"comment:主键ID;primaryKey;" json:"id"`
    AddJobType
}