fix: 网元模块(查询网元,UDM用户信息)
This commit is contained in:
19
src/modules/network_element/model/ne_info.go
Normal file
19
src/modules/network_element/model/ne_info.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
// NeInfo 网元信息对象 ne_info
|
||||
type NeInfo struct {
|
||||
ID int64 `json:"id"`
|
||||
NeType string `json:"neType"`
|
||||
NeId string `json:"neId"`
|
||||
RmUID string `json:"rmUid"`
|
||||
NeName string `json:"neName"`
|
||||
IP string `json:"ip"`
|
||||
Port int64 `json:"port"`
|
||||
PvFlag string `json:"pvFlag"` // enum('PNF','VNF')
|
||||
Province string `json:"province"`
|
||||
VendorName string `json:"vendorName"`
|
||||
Dn string `json:"dn"`
|
||||
NeAddress string `json:"neAddress"`
|
||||
Status string `json:"status"` // 0: 在线 1: 下线 2: 备用 3: 工程
|
||||
UpdateTime string `json:"updateTime"`
|
||||
}
|
||||
17
src/modules/network_element/model/udm_auth.go
Normal file
17
src/modules/network_element/model/udm_auth.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
// UDMAuth UDM鉴权用户对象 u_auth_user
|
||||
type UDMAuth struct {
|
||||
ID string `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
|
||||
Imsi string `json:"imsi" gorm:"column:imsi"` // SIM卡号
|
||||
Amf string `json:"amf" gorm:"column:amf"` // ANF
|
||||
Status string `json:"status" gorm:"column:status"` // 状态
|
||||
Ki string `json:"ki" gorm:"column:ki"` // ki
|
||||
AlgoIndex string `json:"algoIndex" gorm:"column:algo_index"` // AlgoIndex
|
||||
Opc string `json:"opc" gorm:"column:opc"`
|
||||
NeID string `json:"neId" gorm:"column:ne_id"` // UDM网元标识-子系统
|
||||
}
|
||||
|
||||
func (UDMAuth) TableName() string {
|
||||
return "u_auth_user"
|
||||
}
|
||||
33
src/modules/network_element/model/udm_sub.go
Normal file
33
src/modules/network_element/model/udm_sub.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package model
|
||||
|
||||
// UDMSub UDM签约用户对象 u_sub_user
|
||||
type UDMSub struct {
|
||||
ID string `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
|
||||
Msisdn string `json:"msisdn" gorm:"column:msisdn"` // 相当手机号
|
||||
Imsi string `json:"imsi" gorm:"column:imsi"` // SIM卡号
|
||||
Ambr string `json:"ambr" gorm:"column:ambr"`
|
||||
Nssai string `json:"nssai" gorm:"column:nssai"`
|
||||
Rat string `json:"rat" gorm:"column:rat"`
|
||||
Arfb string `json:"arfb" gorm:"column:arfb"`
|
||||
Sar string `json:"sar" gorm:"column:sar"`
|
||||
Cn string `json:"cn" gorm:"column:cn"`
|
||||
SmData string `json:"smData" gorm:"column:sm_data"`
|
||||
SmfSel string `json:"smfSel" gorm:"column:smf_sel"`
|
||||
EpsDat string `json:"epsDat" gorm:"column:eps_dat"`
|
||||
NeID string `json:"neId" gorm:"column:ne_id"` // UDM网元标识-子系统
|
||||
|
||||
EpsFlag string `json:"epsFlag" gorm:"column:eps_flag"`
|
||||
EpsOdb string `json:"epsOdb" gorm:"column:eps_odb"`
|
||||
HplmnOdb string `json:"hplmnOdb" gorm:"column:hplmn_odb"`
|
||||
Ard string `json:"ard" gorm:"column:ard"`
|
||||
Epstpl string `json:"epstpl" gorm:"column:epstpl"`
|
||||
ContextId string `json:"contextId" gorm:"column:context_id"`
|
||||
ApnContext string `json:"apnContext" gorm:"column:apn_context"`
|
||||
StaticIp string `json:"staticIp" gorm:"column:static_ip"`
|
||||
|
||||
SubNum string `json:"subNum,omitempty" gorm:"-"` // 批量数
|
||||
}
|
||||
|
||||
func (UDMSub) TableName() string {
|
||||
return "u_sub_user"
|
||||
}
|
||||
Reference in New Issue
Block a user