You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
431 B
22 lines
431 B
2 months ago
|
package models
|
||
|
|
||
|
// SimpleStatus 简单状态
|
||
|
type SimpleStatus bool
|
||
|
|
||
|
const (
|
||
|
StatusOn SimpleStatus = true
|
||
|
StatusOff SimpleStatus = false
|
||
|
)
|
||
|
|
||
|
// AuditableStatus 具有中间能力的状态
|
||
|
type AuditableStatus int8
|
||
|
|
||
|
const (
|
||
|
StatusDisabled AuditableStatus = iota - 1 // 被禁用
|
||
|
StatusAuditing // 待审核
|
||
|
StatusEnabled // 已启用
|
||
|
)
|
||
|
|
||
|
// Quality 品种
|
||
|
type Quality int
|