spark-server/internal/module/sms/entity/carrier.go
2026-09-22 17:07:26 +08:00

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
}