✨ init project
This commit is contained in:
18
model/bot/bot.go
Normal file
18
model/bot/bot.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// 自动生成模板Bot
|
||||
package bot
|
||||
|
||||
import (
|
||||
"git.echol.cn/loser/lckt/global"
|
||||
)
|
||||
|
||||
// 机器人 结构体 Bot
|
||||
type Bot struct {
|
||||
global.GVA_MODEL
|
||||
Keyword string `json:"keyword" form:"keyword" gorm:"column:keyword;comment:关键词;" binding:"required"` //关键词
|
||||
Content *string `json:"content" form:"content" gorm:"column:content;comment:内容;type:text;" binding:"required"` //内容
|
||||
}
|
||||
|
||||
// TableName 机器人 Bot自定义表名 bots
|
||||
func (Bot) TableName() string {
|
||||
return "bots"
|
||||
}
|
||||
16
model/bot/request/bot.go
Normal file
16
model/bot/request/bot.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"git.echol.cn/loser/lckt/model/common/request"
|
||||
"time"
|
||||
)
|
||||
|
||||
type BotSearch struct {
|
||||
StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
|
||||
EndCreatedAt *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
|
||||
request.PageInfo
|
||||
}
|
||||
|
||||
type FindKey struct {
|
||||
KeyWord string `json:"keyWord" form:"keyWord"`
|
||||
}
|
||||
Reference in New Issue
Block a user