add: multi-tenant

This commit is contained in:
2024-06-03 10:03:49 +08:00
parent 8f2067e362
commit 7f062adbd9
5 changed files with 532 additions and 5 deletions

View File

@@ -0,0 +1,30 @@
package model
// UdmSubUser UDM签约用户
type UdmSubUser struct {
ID string `json:"id" xorm:"pk 'id' autoincr"`
Msisdn string `json:"msisdn" xorm:"msisdn"` // 相当手机号
Imsi string `json:"imsi" xorm:"imsi"` // SIM卡号
Ambr string `json:"ambr" xorm:"ambr"`
Nssai string `json:"nssai" xorm:"nssai"`
Rat string `json:"rat" xorm:"rat"`
Arfb string `json:"arfb" xorm:"arfb"`
Sar string `json:"sar" xorm:"sar"`
Cn string `json:"cn" xorm:"cn"`
SmData string `json:"smData" xorm:"sm_data"`
SmfSel string `json:"smfSel" xorm:"smf_sel"`
EpsDat string `json:"epsDat" xorm:"eps_dat"`
NeID string `json:"neId" xorm:"ne_id"` // UDM网元标识-子系统
EpsFlag string `json:"epsFlag" xorm:"eps_flag"`
EpsOdb string `json:"epsOdb" xorm:"eps_odb"`
HplmnOdb string `json:"hplmnOdb" xorm:"hplmn_odb"`
Ard string `json:"ard" xorm:"ard"`
Epstpl string `json:"epstpl" xorm:"epstpl"`
ContextId string `json:"contextId" xorm:"context_id"`
ApnContext string `json:"apnContext" xorm:"apn_context"`
StaticIp string `json:"staticIp" xorm:"static_ip"`
TenantIDs string `json:"tenantIDs" xorm:"tenant_ids"`
SubNum string `json:"subNum,omitempty" xorm:"-"` // 批量数
}