mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-12-26 10:05:58 +08:00
版本预发布
This commit is contained in:
@@ -8,9 +8,9 @@ package member
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// GetIdByCodeReq 通过邀请码获取会员ID
|
||||
// GetIdByCodeReq 通过邀请码获取用户ID
|
||||
type GetIdByCodeReq struct {
|
||||
g.Meta `path:"/member/getIdByCode" method:"post" tags:"会员" summary:"通过邀请码获取会员ID"`
|
||||
g.Meta `path:"/member/getIdByCode" method:"post" tags:"用户" summary:"通过邀请码获取用户ID"`
|
||||
Code string `json:"code" dc:"邀请码"`
|
||||
}
|
||||
type GetIdByCodeRes struct{}
|
||||
|
||||
@@ -54,7 +54,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"附件ID"`
|
||||
g.Meta `path:"/attachment/max_sort" method:"get" tags:"附件" summary:"附件最大排序"`
|
||||
g.Meta `path:"/attachment/maxSort" method:"get" tags:"附件" summary:"附件最大排序"`
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
|
||||
@@ -54,7 +54,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"黑名单ID"`
|
||||
g.Meta `path:"/blacklist/max_sort" method:"get" tags:"黑名单" summary:"黑名单最大排序"`
|
||||
g.Meta `path:"/blacklist/maxSort" method:"get" tags:"黑名单" summary:"黑名单最大排序"`
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
|
||||
@@ -17,3 +17,10 @@ type SendTestEmailReq struct {
|
||||
}
|
||||
type SendTestEmailRes struct {
|
||||
}
|
||||
|
||||
// SendBindEmsReq 发送换绑邮件
|
||||
type SendBindEmsReq struct {
|
||||
g.Meta `path:"/ems/sendBind" tags:"邮件" method:"post" summary:"发送换绑邮件"`
|
||||
}
|
||||
type SendBindEmsRes struct {
|
||||
}
|
||||
|
||||
@@ -17,3 +17,10 @@ type SendTestSmsReq struct {
|
||||
}
|
||||
type SendTestSmsRes struct {
|
||||
}
|
||||
|
||||
// SendBindSmsReq 发送换绑短信
|
||||
type SendBindSmsReq struct {
|
||||
g.Meta `path:"/sms/sendBind" tags:"短信" method:"post" summary:"发送换绑短信"`
|
||||
}
|
||||
type SendBindSmsRes struct {
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"定时任务ID"`
|
||||
g.Meta `path:"/cron/max_sort" method:"get" tags:"定时任务" summary:"定时任务最大排序"`
|
||||
g.Meta `path:"/cron/maxSort" method:"get" tags:"定时任务" summary:"定时任务最大排序"`
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
|
||||
@@ -54,7 +54,7 @@ type GroupDeleteRes struct{}
|
||||
// GroupMaxSortReq 最大排序
|
||||
type GroupMaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"定时任务分组ID"`
|
||||
g.Meta `path:"/cronGroup/max_sort" method:"get" tags:"定时任务分组" summary:"定时任务分组最大排序"`
|
||||
g.Meta `path:"/cronGroup/maxSort" method:"get" tags:"定时任务分组" summary:"定时任务分组最大排序"`
|
||||
}
|
||||
type GroupMaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.1.0
|
||||
// @AutoGenerate Date 2023-01-18 15:19:42
|
||||
// @AutoGenerate Version 2.1.2
|
||||
// @AutoGenerate Date 2023-02-08 17:47:32
|
||||
//
|
||||
package curddemo
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ type ListReq struct {
|
||||
g.Meta `path:"/dept/list" method:"get" tags:"部门" summary:"获取部门列表"`
|
||||
}
|
||||
|
||||
type ListRes []*g.Map
|
||||
type ListRes adminin.DeptListModel
|
||||
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
@@ -65,7 +65,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"部门ID"`
|
||||
g.Meta `path:"/dept/max_sort" method:"get" tags:"部门" summary:"部门最大排序"`
|
||||
g.Meta `path:"/dept/maxSort" method:"get" tags:"部门" summary:"部门最大排序"`
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
|
||||
55
server/api/backend/emslog/emslog.go
Normal file
55
server/api/backend/emslog/emslog.go
Normal file
@@ -0,0 +1,55 @@
|
||||
package emslog
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/emsLog/list" method:"get" tags:"邮件记录" summary:"获取邮件记录列表"`
|
||||
sysin.EmsLogListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
List []*sysin.EmsLogListModel `json:"list" dc:"数据列表"`
|
||||
form.PageRes
|
||||
}
|
||||
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/emsLog/view" method:"get" tags:"邮件记录" summary:"获取指定信息"`
|
||||
sysin.EmsLogViewInp
|
||||
}
|
||||
type ViewRes struct {
|
||||
*sysin.EmsLogViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增数据
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/emsLog/edit" method:"post" tags:"邮件记录" summary:"修改/新增邮件记录"`
|
||||
sysin.EmsLogEditInp
|
||||
}
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/emsLog/delete" method:"post" tags:"邮件记录" summary:"删除邮件记录"`
|
||||
sysin.EmsLogDeleteInp
|
||||
}
|
||||
type DeleteRes struct{}
|
||||
|
||||
// StatusReq 更新状态
|
||||
type StatusReq struct {
|
||||
g.Meta `path:"/emsLog/status" method:"post" tags:"邮件记录" summary:"更新邮件记录状态"`
|
||||
sysin.EmsLogStatusInp
|
||||
}
|
||||
type StatusRes struct{}
|
||||
|
||||
// SendTestReq 更新状态
|
||||
type SendTestReq struct {
|
||||
g.Meta `path:"/emsLog/sendTest" method:"post" tags:"邮件记录" summary:"发送测试邮件"`
|
||||
sysin.SendEmsInp
|
||||
}
|
||||
type SendTestRes struct{}
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/genCodes/list" method:"get" tags:"生成代码" summary:"获取生成代码列表"`
|
||||
g.Meta `path:"/genCodes/list" method:"get" tags:"生成代码" summary:"获取生成代码列表"`
|
||||
sysin.GenCodesListInp
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"生成代码ID"`
|
||||
g.Meta `path:"/genCodes/max_sort" method:"get" tags:"生成代码" summary:"生成代码最大排序"`
|
||||
g.Meta `path:"/genCodes/maxSort" method:"get" tags:"生成代码" summary:"生成代码最大排序"`
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
|
||||
@@ -8,94 +8,83 @@ package member
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/adminin"
|
||||
"hotgo/internal/model/input/form"
|
||||
)
|
||||
|
||||
// UpdateProfileReq 更新会员资料
|
||||
// UpdateCashReq 更新提现信息
|
||||
type UpdateCashReq struct {
|
||||
g.Meta `path:"/member/updateCash" method:"post" tags:"用户" summary:"更新提现信息"`
|
||||
adminin.MemberUpdateCashInp
|
||||
}
|
||||
type UpdateCashRes struct{}
|
||||
|
||||
// UpdateEmailReq 换绑邮箱
|
||||
type UpdateEmailReq struct {
|
||||
g.Meta `path:"/member/updateEmail" method:"post" tags:"用户" summary:"换绑邮箱"`
|
||||
adminin.MemberUpdateEmailInp
|
||||
}
|
||||
type UpdateEmailRes struct{}
|
||||
|
||||
// UpdateMobileReq 换绑手机号
|
||||
type UpdateMobileReq struct {
|
||||
g.Meta `path:"/member/updateMobile" method:"post" tags:"用户" summary:"换绑手机号"`
|
||||
adminin.MemberUpdateMobileInp
|
||||
}
|
||||
type UpdateMobileRes struct{}
|
||||
|
||||
// UpdateProfileReq 更新用户资料
|
||||
type UpdateProfileReq struct {
|
||||
g.Meta `path:"/member/updateProfile" method:"post" tags:"会员" summary:"更新会员资料"`
|
||||
Mobile int `json:"mobile" dc:"手机号"`
|
||||
Email string `json:"email" dc:"邮箱"`
|
||||
RealName string `json:"realName" dc:"真实姓名"`
|
||||
g.Meta `path:"/member/updateProfile" method:"post" tags:"用户" summary:"更新用户资料"`
|
||||
adminin.MemberUpdateProfileInp
|
||||
}
|
||||
type UpdateProfileRes struct{}
|
||||
|
||||
// UpdatePwdReq 修改登录密码
|
||||
type UpdatePwdReq struct {
|
||||
g.Meta `path:"/member/updatePwd" method:"post" tags:"会员" summary:"重置密码"`
|
||||
OldPassword string `json:"oldPassword" v:"required#原密码不能为空" dc:"原密码"`
|
||||
NewPassword string `json:"newPassword" v:"required|length:6,16#新密码不能为空#新密码需在6~16之间" dc:"新密码"`
|
||||
g.Meta `path:"/member/updatePwd" method:"post" tags:"用户" summary:"重置密码"`
|
||||
adminin.MemberUpdatePwdInp
|
||||
}
|
||||
type UpdatePwdRes struct{}
|
||||
|
||||
// ProfileReq 获取登录用户的基本信息
|
||||
type ProfileReq struct {
|
||||
g.Meta `path:"/member/profile" method:"get" tags:"会员" summary:"获取登录用户的基本信息"`
|
||||
}
|
||||
type ProfileRes struct {
|
||||
PostGroup string `json:"postGroup" dc:"岗位名称"`
|
||||
RoleGroup string `json:"roleGroup" dc:"角色名称"`
|
||||
User *adminin.MemberViewModel `json:"member" dc:"用户基本信息"`
|
||||
SysDept *adminin.DeptViewModel `json:"sysDept" dc:"部门信息"`
|
||||
SysRoles []*adminin.RoleListModel `json:"sysRoles" dc:"角色列表"`
|
||||
PostIds int64 `json:"postIds" dc:"当前岗位"`
|
||||
RoleIds int64 `json:"roleIds" dc:"当前角色"`
|
||||
}
|
||||
|
||||
// ResetPwdReq 重置密码
|
||||
type ResetPwdReq struct {
|
||||
g.Meta `path:"/member/resetPwd" method:"post" tags:"会员" summary:"重置密码"`
|
||||
Password string `json:"password" v:"required#密码不能为空" dc:"密码"`
|
||||
Id int64 `json:"id" dc:"会员ID"`
|
||||
g.Meta `path:"/member/resetPwd" method:"post" tags:"用户" summary:"重置密码"`
|
||||
adminin.MemberResetPwdInp
|
||||
}
|
||||
type ResetPwdRes struct{}
|
||||
|
||||
// EmailUniqueReq 邮箱是否唯一
|
||||
type EmailUniqueReq struct {
|
||||
g.Meta `path:"/member/emailUnique" method:"get" tags:"会员" summary:"邮箱是否唯一"`
|
||||
Email string `json:"email" v:"required#邮箱不能为空" dc:"邮箱"`
|
||||
Id int64 `json:"id" dc:"会员ID"`
|
||||
g.Meta `path:"/member/emailUnique" method:"get" tags:"用户" summary:"邮箱是否唯一"`
|
||||
adminin.MemberEmailUniqueInp
|
||||
}
|
||||
type EmailUniqueRes struct {
|
||||
IsUnique bool `json:"is_unique" dc:"是否唯一"`
|
||||
*adminin.MemberEmailUniqueModel
|
||||
}
|
||||
|
||||
// MobileUniqueReq 手机号是否唯一
|
||||
type MobileUniqueReq struct {
|
||||
g.Meta `path:"/member/mobileUnique" method:"get" tags:"会员" summary:"手机号是否唯一"`
|
||||
Mobile string `json:"mobile" v:"required#手机号不能为空" dc:"手机号"`
|
||||
Id int64 `json:"id" dc:"会员ID"`
|
||||
g.Meta `path:"/member/mobileUnique" method:"get" tags:"用户" summary:"手机号是否唯一"`
|
||||
adminin.MemberMobileUniqueInp
|
||||
}
|
||||
type MobileUniqueRes struct {
|
||||
IsUnique bool `json:"is_unique" dc:"是否唯一"`
|
||||
*adminin.MemberMobileUniqueModel
|
||||
}
|
||||
|
||||
// NameUniqueReq 名称是否唯一
|
||||
type NameUniqueReq struct {
|
||||
g.Meta `path:"/member/nameUnique" method:"get" tags:"会员" summary:"会员名称是否唯一"`
|
||||
Username string `json:"username" v:"required#会员名称不能为空" dc:"会员名称"`
|
||||
Id int64 `json:"id" dc:"会员ID"`
|
||||
g.Meta `path:"/member/nameUnique" method:"get" tags:"用户" summary:"用户名称是否唯一"`
|
||||
adminin.MemberNameUniqueInp
|
||||
}
|
||||
type NameUniqueRes struct {
|
||||
IsUnique bool `json:"is_unique" dc:"是否唯一"`
|
||||
*adminin.MemberNameUniqueModel
|
||||
}
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/member/list" method:"get" tags:"会员" summary:"获取会员列表"`
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
DeptId int `json:"deptId" dc:"部门ID"`
|
||||
Mobile int `json:"mobile" dc:"手机号"`
|
||||
Username string `json:"username" dc:"用户名"`
|
||||
Realname string `json:"realName" dc:"真实姓名"`
|
||||
Name string `json:"name" dc:"岗位名称"`
|
||||
Code string `json:"code" dc:"岗位编码"`
|
||||
CreatedAt []int64 `json:"createdAt" dc:"创建时间"`
|
||||
g.Meta `path:"/member/list" method:"get" tags:"用户" summary:"获取用户列表"`
|
||||
adminin.MemberListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -105,107 +94,54 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/member/view" method:"get" tags:"会员" summary:"获取指定信息"`
|
||||
Id int64 `json:"id" dc:"会员ID"`
|
||||
g.Meta `path:"/member/view" method:"get" tags:"用户" summary:"获取指定信息"`
|
||||
adminin.MemberViewInp
|
||||
}
|
||||
type ViewRes struct {
|
||||
*adminin.MemberViewModel
|
||||
Posts []*adminin.PostListModel `json:"posts" dc:"可选岗位"`
|
||||
PostIds []int64 `json:"postIds" dc:"当前岗位"`
|
||||
Roles []*adminin.RoleListModel `json:"roles" dc:"可选角色"`
|
||||
RoleIds []int64 `json:"roleIds" dc:"当前角色"`
|
||||
DeptName string `json:"deptName" dc:"部门名称"`
|
||||
}
|
||||
|
||||
// EditReq 修改/新增
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/member/edit" method:"post" tags:"会员" summary:"修改/新增会员"`
|
||||
g.Meta `path:"/member/edit" method:"post" tags:"用户" summary:"修改/新增用户"`
|
||||
adminin.MemberEditInp
|
||||
}
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/member/delete" method:"post" tags:"会员" summary:"删除会员"`
|
||||
Id interface{} `json:"id" v:"required#会员ID不能为空" dc:"会员ID"`
|
||||
g.Meta `path:"/member/delete" method:"post" tags:"用户" summary:"删除用户"`
|
||||
adminin.MemberDeleteInp
|
||||
}
|
||||
type DeleteRes struct{}
|
||||
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
g.Meta `path:"/member/max_sort" method:"get" tags:"会员" summary:"会员最大排序"`
|
||||
Id int64 `json:"id" dc:"会员ID"`
|
||||
g.Meta `path:"/member/maxSort" method:"get" tags:"用户" summary:"用户最大排序"`
|
||||
adminin.MemberMaxSortInp
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
*adminin.MemberMaxSortModel
|
||||
}
|
||||
|
||||
// InfoReq 获取登录用户信息
|
||||
type InfoReq struct {
|
||||
g.Meta `path:"/member/info" method:"get" tags:"会员" summary:"获取登录用户信息" dc:"获取管理后台的登录用户信息"`
|
||||
// LoginInfoReq 获取登录用户信息
|
||||
type LoginInfoReq struct {
|
||||
g.Meta `path:"/member/info" method:"get" tags:"用户" summary:"获取登录用户信息" dc:"获取管理后台的登录用户信息"`
|
||||
}
|
||||
|
||||
type InfoRes struct {
|
||||
adminin.MemberLoginModel
|
||||
type LoginInfoRes struct {
|
||||
*adminin.LoginMemberInfoModel
|
||||
}
|
||||
|
||||
type PortalConfigContentOptions struct {
|
||||
TitleRequired bool `json:"titleRequired" titleRequired:""`
|
||||
MoreUrl string `json:"moreUrl" dc:"模块地址"`
|
||||
Refresh int `json:"refresh" dc:"刷新"`
|
||||
}
|
||||
|
||||
type PortalConfigContent struct {
|
||||
Id int `json:"id" dc:"内容ID"`
|
||||
X int `json:"x" dc:""`
|
||||
Y int `json:"y" dc:""`
|
||||
W int `json:"w" dc:"宽"`
|
||||
H int `json:"h" dc:"高"`
|
||||
I int `json:"i" dc:""`
|
||||
Key string `json:"key" dc:""`
|
||||
IsShowTitle string `json:"isShowTitle" dc:""`
|
||||
IsAllowDrag bool `json:"isAllowDrag" dc:""`
|
||||
Name string `json:"name" dc:""`
|
||||
Type string `json:"type" dc:""`
|
||||
Url string `json:"url" dc:""`
|
||||
Options []*PortalConfigContentOptions `json:"options" dc:""`
|
||||
Moved bool `json:"moved" dc:""`
|
||||
}
|
||||
|
||||
type PortalConfig struct {
|
||||
CreateByName string `json:"createByName" dc:"创建者名称"`
|
||||
CreateDeptName string `json:"createDeptName" dc:"创建部门名称"`
|
||||
ImportErrInfo string `json:"importErrInfo" dc:"导出错误信息"`
|
||||
Id string `json:"id" dc:"用户ID"`
|
||||
SearchValue string `json:"searchValue" dc:"搜索内容"`
|
||||
CreateBy string `json:"createBy" dc:"创建者名称"`
|
||||
CreateDept string `json:"createDept" dc:"创建部门名称"`
|
||||
CreateTime *gtime.Time `json:"createTime" dc:"创建时间"`
|
||||
UpdateBy string `json:"updateBy" dc:"更新者名称"`
|
||||
UpdateTime *gtime.Time `json:"updateTime" dc:"更新时间"`
|
||||
UpdateIp string `json:"updateIp" dc:"更新iP"`
|
||||
Remark string `json:"remark" dc:"备注"`
|
||||
Version string `json:"version" dc:"版本号"`
|
||||
DelFlag string `json:"delFlag" dc:"删除标签"`
|
||||
HandleType string `json:"handleType" dc:""`
|
||||
Params string `json:"params" dc:""`
|
||||
Name string `json:"name" dc:"配置名称"`
|
||||
Code string `json:"code" dc:"配置代码"`
|
||||
ApplicationRange string `json:"applicationRange" dc:""`
|
||||
IsDefault string `json:"isDefault" dc:"是否默认"`
|
||||
ResourceId string `json:"resourceId" dc:""`
|
||||
ResourceName string `json:"resourceName" dc:""`
|
||||
SystemDefinedId string `json:"systemDefinedId" dc:""`
|
||||
Sort string `json:"sort" dc:"排序"`
|
||||
SaveType string `json:"saveType" dc:""`
|
||||
Status string `json:"status" dc:"状态"`
|
||||
RecordLog string `json:"recordLog" dc:""`
|
||||
PortalConfigContent string `json:"content" dc:"配置内容"`
|
||||
}
|
||||
|
||||
// StatusReq 更新岗位状态
|
||||
// StatusReq 更新用户状态
|
||||
type StatusReq struct {
|
||||
entity.AdminPost
|
||||
g.Meta `path:"/member/status" method:"post" tags:"会员" summary:"更新会员状态"`
|
||||
g.Meta `path:"/member/status" method:"post" tags:"用户" summary:"更新用户状态"`
|
||||
adminin.MemberStatusInp
|
||||
}
|
||||
type StatusRes struct{}
|
||||
|
||||
// SelectReq 获取可选的后台用户选项
|
||||
type SelectReq struct {
|
||||
g.Meta `path:"/member/option" method:"get" summary:"用户" tags:"获取可选的后台用户选项"`
|
||||
}
|
||||
type SelectRes []*adminin.MemberSelectModel
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
// MaxSortReq 菜单最大排序
|
||||
type MaxSortReq struct {
|
||||
g.Meta `path:"/menu/max_sort" method:"get" tags:"菜单" summary:"菜单最大排序"`
|
||||
g.Meta `path:"/menu/maxSort" method:"get" tags:"菜单" summary:"菜单最大排序"`
|
||||
Id int64 `json:"id" dc:"菜单ID"`
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
|
||||
@@ -8,19 +8,14 @@ package notice
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/adminin"
|
||||
"hotgo/internal/model/input/form"
|
||||
)
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
g.Meta `path:"/notice/list" method:"get" tags:"公告" summary:"获取公告列表"`
|
||||
g.Meta `path:"/notice/list" method:"get" tags:"公告" summary:"获取公告列表"`
|
||||
adminin.NoticeListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -30,39 +25,105 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取指定信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#公告ID不能为空" dc:"公告ID"`
|
||||
g.Meta `path:"/notice/view" method:"get" tags:"公告" summary:"获取指定信息"`
|
||||
adminin.NoticeViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
*adminin.NoticeViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增字典数据
|
||||
type EditReq struct {
|
||||
entity.AdminNotice
|
||||
g.Meta `path:"/notice/edit" method:"post" tags:"公告" summary:"修改/新增公告"`
|
||||
adminin.NoticeEditInp
|
||||
}
|
||||
|
||||
type EditRes struct{}
|
||||
|
||||
// DeleteReq 删除字典类型
|
||||
type DeleteReq struct {
|
||||
Id interface{} `json:"id" v:"required#公告ID不能为空" dc:"公告ID"`
|
||||
g.Meta `path:"/notice/delete" method:"post" tags:"公告" summary:"删除公告"`
|
||||
adminin.NoticeDeleteInp
|
||||
}
|
||||
|
||||
type DeleteRes struct{}
|
||||
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
Id int64 `json:"id" dc:"公告ID"`
|
||||
g.Meta `path:"/notice/max_sort" method:"get" tags:"公告" summary:"公告最大排序"`
|
||||
g.Meta `path:"/notice/maxSort" method:"get" tags:"公告" summary:"公告最大排序"`
|
||||
adminin.NoticeMaxSortInp
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
Sort int `json:"sort" dc:"排序"`
|
||||
}
|
||||
|
||||
// StatusReq 更新公告状态
|
||||
type StatusReq struct {
|
||||
entity.AdminNotice
|
||||
g.Meta `path:"/notice/status" method:"post" tags:"公告" summary:"更新公告状态"`
|
||||
adminin.NoticeStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
||||
// EditNotifyReq 修改/新增通知
|
||||
type EditNotifyReq struct {
|
||||
g.Meta `path:"/notice/editNotify" method:"post" tags:"公告" summary:"修改/新增通知"`
|
||||
adminin.NoticeEditInp
|
||||
}
|
||||
|
||||
type EditNotifyRes struct{}
|
||||
|
||||
// EditNoticeReq 修改/新增公告
|
||||
type EditNoticeReq struct {
|
||||
g.Meta `path:"/notice/editNotice" method:"post" tags:"公告" summary:"修改/新增公告"`
|
||||
adminin.NoticeEditInp
|
||||
}
|
||||
|
||||
type EditNoticeRes struct{}
|
||||
|
||||
// EditLetterReq 修改/新增公告
|
||||
type EditLetterReq struct {
|
||||
g.Meta `path:"/notice/editLetter" method:"post" tags:"公告" summary:"修改/新增私信"`
|
||||
adminin.NoticeEditInp
|
||||
}
|
||||
|
||||
type EditLetterRes struct{}
|
||||
|
||||
// PullMessagesReq 拉取我的消息
|
||||
type PullMessagesReq struct {
|
||||
g.Meta `path:"/notice/pullMessages" method:"get" tags:"公告" summary:"拉取我的消息"`
|
||||
adminin.PullMessagesInp
|
||||
}
|
||||
|
||||
type PullMessagesRes struct {
|
||||
*adminin.PullMessagesModel
|
||||
}
|
||||
|
||||
// ReadAllReq 全部已读
|
||||
type ReadAllReq struct {
|
||||
g.Meta `path:"/notice/readAll" method:"post" tags:"公告" summary:"全部已读"`
|
||||
adminin.NoticeReadAllInp
|
||||
}
|
||||
|
||||
type ReadAllRes struct {
|
||||
}
|
||||
|
||||
// UpReadReq 更新已读
|
||||
type UpReadReq struct {
|
||||
g.Meta `path:"/notice/upRead" method:"post" tags:"公告" summary:"更新已读"`
|
||||
adminin.NoticeUpReadInp
|
||||
}
|
||||
type UpReadRes struct{}
|
||||
|
||||
// MessageListReq 我的消息列表
|
||||
type MessageListReq struct {
|
||||
g.Meta `path:"/notice/messageList" method:"get" tags:"公告" summary:"我的消息列表"`
|
||||
adminin.NoticeMessageListInp
|
||||
}
|
||||
|
||||
type MessageListRes struct {
|
||||
List []*adminin.NoticeMessageListModel `json:"list" dc:"数据列表"`
|
||||
form.PageRes
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ type DeleteRes struct{}
|
||||
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
g.Meta `path:"/post/max_sort" method:"get" tags:"岗位" summary:"岗位最大排序"`
|
||||
g.Meta `path:"/post/maxSort" method:"get" tags:"岗位" summary:"岗位最大排序"`
|
||||
Id int64 `json:"id" description:"岗位ID"`
|
||||
}
|
||||
type MaxSortRes struct {
|
||||
|
||||
@@ -93,3 +93,19 @@ type UniqueIdReq struct {
|
||||
type UniqueIdRes struct {
|
||||
*sysin.ProvincesUniqueIdModel
|
||||
}
|
||||
|
||||
// SelectReq 省市区选项
|
||||
type SelectReq struct {
|
||||
g.Meta `path:"/provinces/select" method:"get" summary:"省市区" tags:"省市区选项"`
|
||||
sysin.ProvincesSelectInp
|
||||
}
|
||||
type SelectRes struct {
|
||||
*sysin.ProvincesSelectModel
|
||||
}
|
||||
|
||||
// CityLabelReq 获取指定城市标签
|
||||
type CityLabelReq struct {
|
||||
g.Meta `path:"/provinces/cityLabel" method:"get" summary:"省市区" tags:"获取指定城市标签"`
|
||||
sysin.ProvincesCityLabelInp
|
||||
}
|
||||
type CityLabelRes sysin.ProvincesCityLabelModel
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
// MemberListReq 查询列表
|
||||
type MemberListReq struct {
|
||||
g.Meta `path:"/role/member_list" method:"get" tags:"角色" summary:"获取角色下的会员列表"`
|
||||
g.Meta `path:"/role/member_list" method:"get" tags:"角色" summary:"获取角色下的用户列表"`
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
|
||||
Reference in New Issue
Block a user