| | |
| | | OperationStatus_Waiting //正在等待 |
| | | OperationStatus_Ready //就绪 |
| | | OperationStatus_Finish //完成 |
| | | OperationStatus_Cancel //完成 |
| | | ) |
| | | |
| | | type PostType int |
| | |
| | | PostType_Soon PostType = iota + 1 //尽快 |
| | | PostType_AfterReady //当所有产品就绪时 |
| | | ) |
| | | |
| | | type RuleType int |
| | | |
| | | const ( |
| | | RuleType_Product RuleType = iota + 1 //产品上架规则 |
| | | RuleType_ProductCategory //产品类别上架规则 |
| | | ) |
| | | |
| | | type UserType int |
| | | |
| | | const ( |
| | | UserTypeSuper UserType = iota + 1 // 超级管理员 |
| | | UserTypePrimary // 主账户 |
| | | UserTypeSub // 子账户 |
| | | ) |
| | | |
| | | type FileType string |
| | | |
| | | const ( |
| | | FileType_File FileType = "file" //文件 |
| | | FileType_Picture FileType = "picture" //图片 |
| | | FileType_Thumbnail FileType = "thumbnail" //缩略图 |
| | | ) |
| | | |
| | | var FileExtMap = map[string]FileType{ |
| | | "doc": FileType_File, |
| | | "docx": FileType_File, |
| | | "xls": FileType_File, |
| | | "xlsx": FileType_File, |
| | | "txt": FileType_File, |
| | | } |
| | | |
| | | var PicExtMap = map[string]FileType{ |
| | | "jpg": FileType_Picture, |
| | | "jpeg": FileType_Picture, |
| | | "png": FileType_Picture, |
| | | "svg": FileType_Picture, |
| | | } |
| | | |
| | | type FileTemplateCategory int |
| | | |
| | | const ( |
| | | FileTemplateCategory_Selfmade FileTemplateCategory = iota + 1 //入库-自制 |
| | | FileTemplateCategory_Output //出库 |
| | | ) |