2025-09-11 20:01:00 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"go-admin/common/models"
|
2025-10-08 03:51:06 +08:00
|
|
|
"time"
|
2025-09-11 20:01:00 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type SmsAbnormalNumber struct {
|
2025-10-08 03:51:06 +08:00
|
|
|
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
|
2025-09-11 20:01:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (SmsAbnormalNumber) TableName() string {
|
2025-10-08 03:51:06 +08:00
|
|
|
return "sms_abnormal_number"
|
2025-09-11 20:01:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *SmsAbnormalNumber) Generate() models.ActiveRecord {
|
|
|
|
|
o := *e
|
|
|
|
|
return &o
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *SmsAbnormalNumber) GetId() interface{} {
|
|
|
|
|
return e.Id
|
2025-10-08 03:51:06 +08:00
|
|
|
}
|