You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
406 B
18 lines
406 B
4 months ago
|
package model
|
||
|
|
||
|
import (
|
||
|
"service-api/global"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type SensitiveWord struct { //敏感词
|
||
|
global.BASE_ID
|
||
|
Content string `gorm:"size:255;unique" json:"content" form:"content"` //内容
|
||
|
Status string `gorm:"size:4" sql:"index" json:"-"` //状态 0已取消 1正常
|
||
|
CreatedAt time.Time `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (SensitiveWord) TableName() string {
|
||
|
return "sensitive_word"
|
||
|
}
|