app-cloudep-wallet-service/pkg/domain/wallet/status.go

17 lines
202 B
Go
Raw Normal View History

2025-04-16 09:24:54 +00:00
package wallet
type Enable int8
const (
EnableTrue Enable = 1
EnableFalse Enable = 2
)
func (e Enable) ToInt8() int8 {
return int8(e)
}
func (e Enable) ToBool() bool {
return e == EnableTrue
}