init project

This commit is contained in:
2025-04-09 12:17:33 +08:00
parent 6840d5d5e3
commit f6622a4e98
392 changed files with 55744 additions and 3 deletions

18
model/bot/bot.go Normal file
View 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
View 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"`
}