来源:hgdjnet-server 9bfbafe10d417deea959bd53117bc88a10e60a83 项目身份 HKDJ / JHA-216,独立官网仓库,Jenkins 守卫键 hkdjnet 测试目录 /server/hkdj_net,App/Web API 30331/30332 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
68 lines
2.8 KiB
Go
68 lines
2.8 KiB
Go
package proto
|
|
|
|
import (
|
|
"hkdj-web-server/pub/common/response"
|
|
"time"
|
|
)
|
|
|
|
// HomeBannerListReq web端首页 banner 分页列表请求
|
|
type HomeBannerListReq struct {
|
|
PageNum int64 `form:"pageNum" json:"pageNum"` // 页码,默认1
|
|
PageSize int64 `form:"pageSize" json:"pageSize"` // 每页数量,默认10,最大100
|
|
Id *int64 `form:"id" json:"id"` // 首页 banner ID
|
|
Name string `form:"name" json:"name"` // 名称,支持模糊查询
|
|
Status *bool `form:"status" json:"status"` // 状态 true-启用 false-停用
|
|
}
|
|
|
|
// HomeBannerListResp web端首页 banner 列表项
|
|
type HomeBannerListResp struct {
|
|
Id int64 `json:"id"` // ID
|
|
Name string `json:"name"` // 名称
|
|
Image string `json:"image"` // 图片
|
|
VerticalImage string `json:"verticalImage"` // 竖版图片
|
|
Url string `json:"url"` // URL
|
|
Rank int64 `json:"rank"` // 排序
|
|
Status bool `json:"status"` // 状态 true-启用 false-停用
|
|
CreatedById int64 `json:"createdById"` // 创建人ID
|
|
CreatedByName string `json:"createdByName"` // 创建人名称
|
|
UpdatedByName string `json:"updatedByName"` // 修改人名称
|
|
CreatedAt time.Time `json:"createdAt"` // 创建时间
|
|
UpdatedAt time.Time `json:"updatedAt"` // 修改时间
|
|
}
|
|
|
|
// HomeBannerListPageResp web端首页 banner 分页列表响应
|
|
type HomeBannerListPageResp struct {
|
|
response.BasePageResp
|
|
}
|
|
|
|
// HomeBannerAddReq web端新增首页 banner 请求
|
|
type HomeBannerAddReq struct {
|
|
Name string `json:"name" binding:"required"` // 名称
|
|
Image string `json:"image" binding:"required"` // 图片
|
|
VerticalImage string `json:"verticalImage"` // 竖版图片
|
|
Url string `json:"url"` // URL
|
|
Rank int64 `json:"rank"` // 排序
|
|
Status *bool `json:"status" binding:"required"` // 状态 true-启用 false-停用
|
|
}
|
|
|
|
// HomeBannerAddResp web端新增首页 banner 响应
|
|
type HomeBannerAddResp struct {
|
|
Id int64 `json:"id"` // ID
|
|
}
|
|
|
|
// HomeBannerUpdateReq web端更新首页 banner 请求
|
|
type HomeBannerUpdateReq struct {
|
|
Id int64 `json:"id" binding:"required"` // ID
|
|
Name *string `json:"name"` // 名称
|
|
Image *string `json:"image"` // 图片
|
|
VerticalImage *string `json:"verticalImage"` // 竖版图片
|
|
Url *string `json:"url"` // URL
|
|
Rank *int64 `json:"rank"` // 排序
|
|
Status *bool `json:"status"` // 状态 true-启用 false-停用
|
|
}
|
|
|
|
// HomeBannerDelReq web端删除首页 banner 请求
|
|
type HomeBannerDelReq struct {
|
|
Id int64 `json:"id" binding:"required"` // ID
|
|
}
|