16 lines
327 B
Go
16 lines
327 B
Go
package entity
|
|
|
|
// Carrier is a mainland China mobile network operator used to pick an SMS template.
|
|
type Carrier int8
|
|
|
|
const (
|
|
CarrierUnknown Carrier = 0
|
|
CarrierMobile Carrier = 1
|
|
CarrierUnicom Carrier = 2
|
|
CarrierTelecom Carrier = 3
|
|
)
|
|
|
|
func (c Carrier) Valid() bool {
|
|
return c >= CarrierMobile && c <= CarrierTelecom
|
|
}
|