fix: 网元数据查询结构体限定neType范围

This commit is contained in:
TsMask
2025-01-23 15:07:39 +08:00
parent ed9aa17bc3
commit 82615e1982
5 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ func (*CDREventIMS) TableName() string {
// CDREventIMSQuery CDR会话对象IMS查询参数结构体
type CDREventIMSQuery struct {
NeType string `json:"neType" form:"neType" binding:"required"` // 网元类型IMS
NeType string `json:"neType" form:"neType" binding:"required,oneof=IMS"` // 网元类型IMS
NeID string `json:"neId" form:"neId" binding:"required"`
RmUID string `json:"rmUID" form:"rmUID"`
RecordType string `json:"recordType" form:"recordType"` // 记录行为 MOC MTC