Documentation
¶
Overview ¶
Code generated by genx:enum DO NOT EDIT.
Code generated by genx:enum DO NOT EDIT.
Code generated by genx:enum DO NOT EDIT.
Code generated by genx:enum DO NOT EDIT.
Code generated by genx:enum DO NOT EDIT.
Package enums 枚举 +genx:doc +genx:enum
Code generated by genx:doc DO NOT EDIT.
Index ¶
- type Currency
- func (v *Currency) DocOf(names ...string) ([]string, bool)
- func (Currency) EnumValues() []any
- func (v Currency) IsZero() bool
- func (v Currency) MarshalText() ([]byte, error)
- func (v *Currency) Scan(src any) error
- func (v Currency) String() string
- func (v Currency) Text() string
- func (v *Currency) UnmarshalText(data []byte) error
- func (v Currency) Value() (driver.Value, error)
- func (Currency) Values() []Currency
- type OrderStatus
- func (v *OrderStatus) DocOf(names ...string) ([]string, bool)
- func (OrderStatus) EnumValues() []any
- func (v OrderStatus) IsZero() bool
- func (v OrderStatus) MarshalText() ([]byte, error)
- func (v *OrderStatus) Scan(src any) error
- func (v OrderStatus) String() string
- func (v OrderStatus) Text() string
- func (v *OrderStatus) UnmarshalText(data []byte) error
- func (v OrderStatus) Value() (driver.Value, error)
- func (OrderStatus) Values() []OrderStatus
- type ProductStatus
- func (v *ProductStatus) DocOf(names ...string) ([]string, bool)
- func (ProductStatus) EnumValues() []any
- func (v ProductStatus) IsZero() bool
- func (v ProductStatus) MarshalText() ([]byte, error)
- func (v *ProductStatus) Scan(src any) error
- func (v ProductStatus) String() string
- func (v ProductStatus) Text() string
- func (v *ProductStatus) UnmarshalText(data []byte) error
- func (v ProductStatus) Value() (driver.Value, error)
- func (ProductStatus) Values() []ProductStatus
- type ShipmentStatus
- func (v *ShipmentStatus) DocOf(names ...string) ([]string, bool)
- func (ShipmentStatus) EnumValues() []any
- func (v ShipmentStatus) IsZero() bool
- func (v ShipmentStatus) MarshalText() ([]byte, error)
- func (v *ShipmentStatus) Scan(src any) error
- func (v ShipmentStatus) String() string
- func (v ShipmentStatus) Text() string
- func (v *ShipmentStatus) UnmarshalText(data []byte) error
- func (v ShipmentStatus) Value() (driver.Value, error)
- func (ShipmentStatus) Values() []ShipmentStatus
- type UserStatus
- func (v *UserStatus) DocOf(names ...string) ([]string, bool)
- func (UserStatus) EnumValues() []any
- func (v UserStatus) IsZero() bool
- func (v UserStatus) MarshalText() ([]byte, error)
- func (v *UserStatus) Scan(src any) error
- func (v UserStatus) String() string
- func (v UserStatus) Text() string
- func (v *UserStatus) UnmarshalText(data []byte) error
- func (v UserStatus) Value() (driver.Value, error)
- func (UserStatus) Values() []UserStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Currency ¶
type Currency int8
Currency 货币种类
func ParseCurrency ¶ added in v0.3.1
ParseCurrency parse Currency from key
func (Currency) EnumValues ¶ added in v0.3.1
EnumValues implements enumx.CanBeEnum
func (Currency) MarshalText ¶ added in v0.3.1
MarshalText implements encoding.TextMarshaler
func (*Currency) UnmarshalText ¶ added in v0.3.1
UnmarshalText implements encoding.TextUnmarshaler
type OrderStatus ¶
type OrderStatus int8
OrderStatus 订单状态
const ( ORDER_STATUS_UNKNOWN OrderStatus = iota ORDER_STATUS__CREATED // 已创建 ORDER_STATUS__PROCESSING // 处理中 ORDER_STATUS__FINISHED // 已完成 ORDER_STATUS__CANCELED // 已取消 )
func ParseOrderStatus ¶ added in v0.3.1
func ParseOrderStatus(key string) (OrderStatus, error)
ParseOrderStatus parse OrderStatus from key
func (*OrderStatus) DocOf ¶ added in v0.3.1
func (v *OrderStatus) DocOf(names ...string) ([]string, bool)
func (OrderStatus) EnumValues ¶ added in v0.3.1
func (OrderStatus) EnumValues() []any
EnumValues implements enumx.CanBeEnum
func (OrderStatus) IsZero ¶ added in v0.3.1
func (v OrderStatus) IsZero() bool
IsZero checks if v is zero
func (OrderStatus) MarshalText ¶ added in v0.3.1
func (v OrderStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler
func (*OrderStatus) Scan ¶ added in v0.3.1
func (v *OrderStatus) Scan(src any) error
Scan implements sql.Scanner
func (OrderStatus) String ¶ added in v0.3.1
func (v OrderStatus) String() string
String returns v's string as key
func (OrderStatus) Text ¶ added in v0.3.1
func (v OrderStatus) Text() string
Text returns the description as for human reading
func (*OrderStatus) UnmarshalText ¶ added in v0.3.1
func (v *OrderStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler
func (OrderStatus) Value ¶ added in v0.3.1
func (v OrderStatus) Value() (driver.Value, error)
Value implements driver.Valuer
func (OrderStatus) Values ¶ added in v0.3.1
func (OrderStatus) Values() []OrderStatus
Values returns enum value list of OrderStatus
type ProductStatus ¶
type ProductStatus int8
ProductStatus 产品状态
const ( PRODUCT_STATUS_UNKNOWN ProductStatus = iota PRODUCT_STATUS__ON_SALE // 售卖中 PRODUCT_STATUS__DISABLED // 关闭 )
func ParseProductStatus ¶ added in v0.3.1
func ParseProductStatus(key string) (ProductStatus, error)
ParseProductStatus parse ProductStatus from key
func (*ProductStatus) DocOf ¶ added in v0.3.1
func (v *ProductStatus) DocOf(names ...string) ([]string, bool)
func (ProductStatus) EnumValues ¶ added in v0.3.1
func (ProductStatus) EnumValues() []any
EnumValues implements enumx.CanBeEnum
func (ProductStatus) IsZero ¶ added in v0.3.1
func (v ProductStatus) IsZero() bool
IsZero checks if v is zero
func (ProductStatus) MarshalText ¶ added in v0.3.1
func (v ProductStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler
func (*ProductStatus) Scan ¶ added in v0.3.1
func (v *ProductStatus) Scan(src any) error
Scan implements sql.Scanner
func (ProductStatus) String ¶ added in v0.3.1
func (v ProductStatus) String() string
String returns v's string as key
func (ProductStatus) Text ¶ added in v0.3.1
func (v ProductStatus) Text() string
Text returns the description as for human reading
func (*ProductStatus) UnmarshalText ¶ added in v0.3.1
func (v *ProductStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler
func (ProductStatus) Value ¶ added in v0.3.1
func (v ProductStatus) Value() (driver.Value, error)
Value implements driver.Valuer
func (ProductStatus) Values ¶ added in v0.3.1
func (ProductStatus) Values() []ProductStatus
Values returns enum value list of ProductStatus
type ShipmentStatus ¶
type ShipmentStatus int8
ShipmentStatus 物流状态
const ( SHIPMENT_STATUS_UNKNOWN ShipmentStatus = iota SHIPMENT_STATUS__CREATED // 已创建 SHIPMENT_STATUS__SHIPPING // 运输中 SHIPMENT_STATUS__FINISHED // 已完成 )
func ParseShipmentStatus ¶ added in v0.3.1
func ParseShipmentStatus(key string) (ShipmentStatus, error)
ParseShipmentStatus parse ShipmentStatus from key
func (*ShipmentStatus) DocOf ¶ added in v0.3.1
func (v *ShipmentStatus) DocOf(names ...string) ([]string, bool)
func (ShipmentStatus) EnumValues ¶ added in v0.3.1
func (ShipmentStatus) EnumValues() []any
EnumValues implements enumx.CanBeEnum
func (ShipmentStatus) IsZero ¶ added in v0.3.1
func (v ShipmentStatus) IsZero() bool
IsZero checks if v is zero
func (ShipmentStatus) MarshalText ¶ added in v0.3.1
func (v ShipmentStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler
func (*ShipmentStatus) Scan ¶ added in v0.3.1
func (v *ShipmentStatus) Scan(src any) error
Scan implements sql.Scanner
func (ShipmentStatus) String ¶ added in v0.3.1
func (v ShipmentStatus) String() string
String returns v's string as key
func (ShipmentStatus) Text ¶ added in v0.3.1
func (v ShipmentStatus) Text() string
Text returns the description as for human reading
func (*ShipmentStatus) UnmarshalText ¶ added in v0.3.1
func (v *ShipmentStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler
func (ShipmentStatus) Value ¶ added in v0.3.1
func (v ShipmentStatus) Value() (driver.Value, error)
Value implements driver.Valuer
func (ShipmentStatus) Values ¶ added in v0.3.1
func (ShipmentStatus) Values() []ShipmentStatus
Values returns enum value list of ShipmentStatus
type UserStatus ¶
type UserStatus int8
UserStatus 用户状态
const ( USER_STATUS_UNKNOWN UserStatus = iota USER_STATUS__ACTIVITY // 活跃 USER_STATUS__DISABLED // 关闭 )
func ParseUserStatus ¶ added in v0.3.1
func ParseUserStatus(key string) (UserStatus, error)
ParseUserStatus parse UserStatus from key
func (*UserStatus) DocOf ¶ added in v0.3.1
func (v *UserStatus) DocOf(names ...string) ([]string, bool)
func (UserStatus) EnumValues ¶ added in v0.3.1
func (UserStatus) EnumValues() []any
EnumValues implements enumx.CanBeEnum
func (UserStatus) IsZero ¶ added in v0.3.1
func (v UserStatus) IsZero() bool
IsZero checks if v is zero
func (UserStatus) MarshalText ¶ added in v0.3.1
func (v UserStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler
func (*UserStatus) Scan ¶ added in v0.3.1
func (v *UserStatus) Scan(src any) error
Scan implements sql.Scanner
func (UserStatus) String ¶ added in v0.3.1
func (v UserStatus) String() string
String returns v's string as key
func (UserStatus) Text ¶ added in v0.3.1
func (v UserStatus) Text() string
Text returns the description as for human reading
func (*UserStatus) UnmarshalText ¶ added in v0.3.1
func (v *UserStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler
func (UserStatus) Value ¶ added in v0.3.1
func (v UserStatus) Value() (driver.Value, error)
Value implements driver.Valuer
func (UserStatus) Values ¶ added in v0.3.1
func (UserStatus) Values() []UserStatus
Values returns enum value list of UserStatus