zhangqian
2024-03-12 1a2e7a46273fdb6eb53348f4e06100aa7854c3cf
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
38
39
40
41
42
43
44
package constvar
 
type DictType int
 
const (
    DictTypeMarket   DictType = iota //庄口
    DictTypeWorkshop                 //车间
    DictTypeColor                    //颜色
    DictTypeSpec                     //规格
)
 
type UserType int
 
const (
    UserTypeSuper   UserType = iota + 1 // 超级管理员
    UserTypePrimary                     // 主账户
    UserTypeSub                         // 子账户
)
 
type CarFlag int
 
const (
    LeftHalfCar  CarFlag = iota + 1 //左半车
    RightHalfCar                    //右半车
    AllCar                          //全车
)
 
type CheckItem int
 
const (
    CheckItemDeviation    CheckItem = iota + 1 //纤度偏差
    CheckItemTwiceChange                       //二次变化
    CheckItemCleanliness                       //清洁分
    CheckItemPurity                            //洁净分
    CheckItemMaxDeviation                      //最大偏差
)
 
type BadFinenessGrade string
 
const (
    BadFinenessGradeA = "badA"
    BadFinenessGradeB = "badB"
    BadFinenessGradeC = "badC"
)