This commit is contained in:
孟帅
2023-07-20 18:01:10 +08:00
parent 9113fc5297
commit 373d9627fb
492 changed files with 12170 additions and 6982 deletions

View File

@@ -3,10 +3,10 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package adminin
import (
"context"
"github.com/gogf/gf/v2/os/gtime"
"hotgo/internal/model/entity"
"hotgo/internal/model/input/form"
@@ -47,7 +47,6 @@ type NoticeViewModel struct {
// NoticeListInp 获取列表
type NoticeListInp struct {
form.PageReq
form.RangeDateReq
form.StatusReq
Title string
Content string
@@ -81,6 +80,13 @@ type PullMessagesInp struct {
Limit int `json:"limit" dc:"拉取最大数量限制"`
}
func (in *PullMessagesInp) Filter(ctx context.Context) (err error) {
if in.Limit == 0 {
in.Limit = 100
}
return
}
type PullMessagesRow struct {
Id int64 `json:"id" dc:"消息ID"`
Type int64 `json:"type" dc:"消息类型"`