Files
proxy_server/app/admin/models/sms_abnormal_number.go
2025-10-08 03:51:06 +08:00

34 lines
999 B
Go

package models
import (
"go-admin/common/models"
"time"
)
type SmsAbnormalNumber struct {
models.Model
Account string `json:"account" gorm:"type:varchar(255);comment:账号"`
PlatformCode string `json:"platformCode" gorm:"type:varchar(20);comment:平台code"`
ApiKey string `json:"apiKey" gorm:"type:varchar(255);comment:api key"`
Phone string `json:"phone" gorm:"type:varchar(30);comment:电话号码"`
ActivationId string `json:"activationId" gorm:"type:varchar(255);comment:激活id"`
ReceivedTime time.Time `json:"receivedTime" gorm:"type:datetime;comment:接收号码时间"`
Reused int `json:"reused" gorm:"type:tinyint(1);default:2;comment:是否重用 1-是 2-否"`
models.ModelTime
models.ControlBy
}
func (SmsAbnormalNumber) TableName() string {
return "sms_abnormal_number"
}
func (e *SmsAbnormalNumber) Generate() models.ActiveRecord {
o := *e
return &o
}
func (e *SmsAbnormalNumber) GetId() interface{} {
return e.Id
}