feat: support ims user, voip auth data and backup UE data
This commit is contained in:
26
features/ue/model/ims_user.go
Normal file
26
features/ue/model/ims_user.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package model
|
||||
|
||||
const (
|
||||
// IMSI 号码长度
|
||||
IMSI_MAX_LENGTH = 15
|
||||
// MSISDN 号码长度
|
||||
MSISDN_MAX_LENGTH = 15
|
||||
)
|
||||
|
||||
// @Description VoLTE用户信息
|
||||
type IMSUser struct {
|
||||
ID string `json:"id" gorm:"column:id;primaryKey;autoIncrement"` // 主键
|
||||
NeId string `json:"neId" gorm:"column:ne_id"` // UDM网元标识
|
||||
IMSI string `json:"imsi" gorm:"column:imsi"` // SIM卡/USIM卡ID
|
||||
MSISDN string `json:"msisdn" gorm:"column:msisdn"` // 用户电话号码
|
||||
VoLTE string `json:"volte" gorm:"column:volte"` // VoLTE
|
||||
VNI string `json:"vni" gorm:"column:vni"` // VNI
|
||||
|
||||
TenantID string `json:"tenantID" gorm:"column:tenant_id"`
|
||||
TenantName string `json:"tenantName" gorm:"-"`
|
||||
}
|
||||
|
||||
// TableName 表名称
|
||||
func (*IMSUser) TableName() string {
|
||||
return "u_ims_user"
|
||||
}
|
||||
Reference in New Issue
Block a user