mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-14 13:13:51 +08:00
tt
This commit is contained in:
75
hotgo-server/app/form/input/admin_dept_input.go
Normal file
75
hotgo-server/app/form/input/admin_dept_input.go
Normal file
@@ -0,0 +1,75 @@
|
||||
package input
|
||||
|
||||
import "github.com/bufanyun/hotgo/app/model/entity"
|
||||
|
||||
// 名称是否唯一
|
||||
type AdminDeptNameUniqueInp struct {
|
||||
Name string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminDeptNameUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 最大排序
|
||||
type AdminDeptMaxSortInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminDeptMaxSortModel struct {
|
||||
Sort int
|
||||
}
|
||||
|
||||
// 修改/新增字典数据
|
||||
type AdminDeptEditInp struct {
|
||||
entity.AdminDept
|
||||
}
|
||||
type AdminDeptEditModel struct{}
|
||||
|
||||
// 删除字典类型
|
||||
type AdminDeptDeleteInp struct {
|
||||
Id interface{}
|
||||
}
|
||||
type AdminDeptDeleteModel struct{}
|
||||
|
||||
// 获取信息
|
||||
type AdminDeptViewInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminDeptViewModel struct {
|
||||
entity.AdminDept
|
||||
}
|
||||
|
||||
// 获取列表
|
||||
type AdminDeptListInp struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
// 树
|
||||
type AdminDeptTreeDept struct {
|
||||
entity.AdminDept
|
||||
Children []*AdminDeptTreeDept `json:"children"`
|
||||
}
|
||||
|
||||
type AdminDeptListModel AdminDeptTreeDept
|
||||
|
||||
// 获取列表树
|
||||
type AdminDeptListTreeInp struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
// 树
|
||||
type AdminDeptListTreeDept struct {
|
||||
Id int64 `json:"id" `
|
||||
Key int64 `json:"key" `
|
||||
Pid int64 `json:"pid" `
|
||||
Label string `json:"label"`
|
||||
Title string `json:"title"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Children []*AdminDeptListTreeDept `json:"children"`
|
||||
}
|
||||
|
||||
type AdminDeptListTreeModel AdminDeptListTreeDept
|
||||
171
hotgo-server/app/form/input/admin_member_input.go
Normal file
171
hotgo-server/app/form/input/admin_member_input.go
Normal file
@@ -0,0 +1,171 @@
|
||||
package input
|
||||
|
||||
import (
|
||||
"github.com/bufanyun/hotgo/app/model"
|
||||
"github.com/bufanyun/hotgo/app/model/entity"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// 更新会员资料
|
||||
type AdminMemberUpdateProfileInp struct {
|
||||
Mobile int
|
||||
Email string
|
||||
Realname string
|
||||
}
|
||||
|
||||
// 获取指定会员资料
|
||||
type AdminMemberProfileInp struct {
|
||||
Id int64
|
||||
}
|
||||
type AdminMemberProfileModel struct {
|
||||
PostGroup string `json:"postGroup" description:"岗位名称"`
|
||||
RoleGroup string `json:"roleGroup" description:"角色名称"`
|
||||
User *AdminMemberViewModel `json:"user" description:"用户基本信息"`
|
||||
SysDept *AdminDeptViewModel `json:"sysDept" description:"部门信息"`
|
||||
SysRoles []*AdminRoleListModel `json:"sysRoles" description:"角色列表"`
|
||||
PostIds int64 `json:"postIds" description:"当前岗位"`
|
||||
RoleIds int64 `json:"roleIds" description:"当前角色"`
|
||||
}
|
||||
|
||||
// 更新会员资料
|
||||
type MemberUpdateProfileInp struct {
|
||||
Mobile int
|
||||
Email string
|
||||
Realname string
|
||||
}
|
||||
|
||||
// 修改登录密码
|
||||
type AdminMemberUpdatePwdInp struct {
|
||||
Id int64
|
||||
OldPassword string
|
||||
NewPassword string
|
||||
}
|
||||
|
||||
// 重置密码
|
||||
type AdminMemberResetPwdInp struct {
|
||||
Password string
|
||||
Id int64
|
||||
}
|
||||
|
||||
// 邮箱是否唯一
|
||||
type AdminMemberEmailUniqueInp struct {
|
||||
Email string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminMemberEmailUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 手机号是否唯一
|
||||
type AdminMemberMobileUniqueInp struct {
|
||||
Mobile string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminMemberMobileUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 名称是否唯一
|
||||
type AdminMemberNameUniqueInp struct {
|
||||
Username string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminMemberNameUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 最大排序
|
||||
type AdminMemberMaxSortInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminMemberMaxSortModel struct {
|
||||
Sort int
|
||||
}
|
||||
|
||||
// 修改/新增字典数据
|
||||
type AdminMemberEditInp struct {
|
||||
Id int64 `json:"id" description:""`
|
||||
PostIds []int64 `json:"postIds" v:"required#岗位不能为空" description:"岗位ID"`
|
||||
DeptId int64 `json:"dept_id" v:"required#部门不能为空" description:"部门ID"`
|
||||
Username string `json:"username" v:"required#账号不能为空" description:"帐号"`
|
||||
Password string `json:"password" description:"密码"`
|
||||
Realname string `json:"realname" description:"真实姓名"`
|
||||
Avatar string `json:"avatar" description:"头像"`
|
||||
Sex string `json:"sex" description:"性别[0:未知;1:男;2:女]"`
|
||||
Qq string `json:"qq" description:"qq"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Birthday *gtime.Time `json:"birthday" description:"生日"`
|
||||
ProvinceId int `json:"province_id" description:"省"`
|
||||
CityId int `json:"city_id" description:"城市"`
|
||||
AreaId int `json:"area_id" description:"地区"`
|
||||
Address string `json:"address" description:"默认地址"`
|
||||
Mobile string `json:"mobile" description:"手机号码"`
|
||||
HomePhone string `json:"home_phone" description:"家庭号码"`
|
||||
DingtalkRobotToken string `json:"dingtalk_robot_token" description:"钉钉机器人token"`
|
||||
Role int `json:"role" v:"required#角色不能为空" description:"权限"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
Status string `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"created_at" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updated_at" description:"修改时间"`
|
||||
}
|
||||
|
||||
type AdminMemberAddInp struct {
|
||||
AdminMemberEditInp
|
||||
PasswordHash string `json:"password_hash" description:"密码hash"`
|
||||
Salt string `json:"salt" description:"密码盐"`
|
||||
}
|
||||
|
||||
type AdminMemberEditModel struct{}
|
||||
|
||||
// 删除字典类型
|
||||
type AdminMemberDeleteInp struct {
|
||||
Id interface{}
|
||||
}
|
||||
type AdminMemberDeleteModel struct{}
|
||||
|
||||
// 获取信息
|
||||
type AdminMemberViewInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminMemberViewModel struct {
|
||||
entity.AdminMember
|
||||
}
|
||||
|
||||
// 获取列表
|
||||
type AdminMemberListInp struct {
|
||||
Page int
|
||||
Limit int
|
||||
Name string
|
||||
Code string
|
||||
DeptId int
|
||||
Mobile int
|
||||
Username string
|
||||
Realname string
|
||||
StartTime string
|
||||
EndTime string
|
||||
Status int
|
||||
}
|
||||
|
||||
type AdminMemberListModel struct {
|
||||
entity.AdminMember
|
||||
DeptName string `json:"dept_name"`
|
||||
RoleName string `json:"role_name"`
|
||||
}
|
||||
|
||||
// 登录
|
||||
type AdminMemberLoginSignInp struct {
|
||||
Username string
|
||||
Password string
|
||||
Device string
|
||||
Cid string
|
||||
Code string
|
||||
}
|
||||
type AdminMemberLoginSignModel struct {
|
||||
model.Identity
|
||||
Token string `json:"token" v:"" description:"登录token"`
|
||||
}
|
||||
64
hotgo-server/app/form/input/admin_notice_input.go
Normal file
64
hotgo-server/app/form/input/admin_notice_input.go
Normal file
@@ -0,0 +1,64 @@
|
||||
package input
|
||||
|
||||
import "github.com/bufanyun/hotgo/app/model/entity"
|
||||
|
||||
// 名称是否唯一
|
||||
type AdminNoticeNameUniqueInp struct {
|
||||
Title string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminNoticeNameUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 最大排序
|
||||
type AdminNoticeMaxSortInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminNoticeMaxSortModel struct {
|
||||
Sort int
|
||||
}
|
||||
|
||||
// 修改/新增字典数据
|
||||
type AdminNoticeEditInp struct {
|
||||
entity.AdminNotice
|
||||
}
|
||||
type AdminNoticeEditModel struct{}
|
||||
|
||||
// 删除字典类型
|
||||
type AdminNoticeDeleteInp struct {
|
||||
Id interface{}
|
||||
}
|
||||
type AdminNoticeDeleteModel struct{}
|
||||
|
||||
// 获取信息
|
||||
type AdminNoticeViewInp struct {
|
||||
Id string
|
||||
}
|
||||
|
||||
type AdminNoticeViewModel struct {
|
||||
entity.AdminNotice
|
||||
}
|
||||
|
||||
// 获取列表
|
||||
type AdminNoticeListInp struct {
|
||||
Page int
|
||||
Limit int
|
||||
Name string
|
||||
Code string
|
||||
DeptId int
|
||||
Mobile int
|
||||
Username string
|
||||
Realname string
|
||||
StartTime string
|
||||
EndTime string
|
||||
Status int
|
||||
}
|
||||
|
||||
type AdminNoticeListModel struct {
|
||||
entity.AdminNotice
|
||||
DeptName string `json:"dept_name"`
|
||||
RoleName string `json:"role_name"`
|
||||
}
|
||||
68
hotgo-server/app/form/input/admin_post_input.go
Normal file
68
hotgo-server/app/form/input/admin_post_input.go
Normal file
@@ -0,0 +1,68 @@
|
||||
package input
|
||||
|
||||
import (
|
||||
"github.com/bufanyun/hotgo/app/model/entity"
|
||||
)
|
||||
|
||||
// 获取列表
|
||||
type AdminPostListInp struct {
|
||||
Page int
|
||||
Limit int
|
||||
Name string
|
||||
Code string
|
||||
Status int
|
||||
}
|
||||
|
||||
type AdminPostListModel struct {
|
||||
entity.AdminPost
|
||||
}
|
||||
|
||||
// 获取信息
|
||||
type AdminPostViewInp struct {
|
||||
Id string
|
||||
}
|
||||
|
||||
type AdminPostViewModel struct {
|
||||
entity.AdminPost
|
||||
}
|
||||
|
||||
// 编码是否唯一
|
||||
type AdminPostCodeUniqueInp struct {
|
||||
Code string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminPostCodeUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 名称是否唯一
|
||||
type AdminPostNameUniqueInp struct {
|
||||
Name string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminPostNameUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 最大排序
|
||||
type AdminPostMaxSortInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type AdminPostMaxSortModel struct {
|
||||
Sort int
|
||||
}
|
||||
|
||||
// 修改/新增字典数据
|
||||
type AdminPostEditInp struct {
|
||||
entity.AdminPost
|
||||
}
|
||||
type AdminPostEditModel struct{}
|
||||
|
||||
// 删除字典类型
|
||||
type AdminPostDeleteInp struct {
|
||||
Id interface{}
|
||||
}
|
||||
type AdminPostDeleteModel struct{}
|
||||
44
hotgo-server/app/form/input/admin_role_input.go
Normal file
44
hotgo-server/app/form/input/admin_role_input.go
Normal file
@@ -0,0 +1,44 @@
|
||||
package input
|
||||
|
||||
import (
|
||||
"github.com/bufanyun/hotgo/app/form"
|
||||
"github.com/bufanyun/hotgo/app/model"
|
||||
"github.com/bufanyun/hotgo/app/model/entity"
|
||||
)
|
||||
|
||||
// 获取列表
|
||||
type AdminRoleListInp struct {
|
||||
Page int
|
||||
Limit int
|
||||
}
|
||||
|
||||
type AdminRoleListModel struct {
|
||||
entity.AdminRole
|
||||
}
|
||||
|
||||
// 查询列表
|
||||
type AdminRoleMemberListInp struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
Role int `json:"role" description:"角色ID"`
|
||||
DeptId int `json:"dept_id" description:"部门ID"`
|
||||
Mobile int `json:"mobile" description:"手机号"`
|
||||
Username string `json:"username" description:"用户名"`
|
||||
Realname string `json:"realname" description:"真实姓名"`
|
||||
StartTime string `json:"start_time" description:"开始时间"`
|
||||
EndTime string `json:"end_time" description:"结束时间"`
|
||||
Name string `json:"name" description:"岗位名称"`
|
||||
Code string `json:"code" description:"岗位编码"`
|
||||
}
|
||||
|
||||
type AdminRoleMemberListModel []*AdminMemberListModel
|
||||
|
||||
// 查询角色菜单列表
|
||||
type MenuRoleListInp struct {
|
||||
RoleId int64
|
||||
}
|
||||
type MenuRoleListModel struct {
|
||||
Menus []*model.LabelTreeMenu `json:"menus" description:"菜单列表"`
|
||||
CheckedKeys []int64 `json:"checkedKeys" description:"选择的菜单ID"`
|
||||
}
|
||||
72
hotgo-server/app/form/input/sys_config_input.go
Normal file
72
hotgo-server/app/form/input/sys_config_input.go
Normal file
@@ -0,0 +1,72 @@
|
||||
package input
|
||||
|
||||
import "github.com/bufanyun/hotgo/app/model/entity"
|
||||
|
||||
// 获取指定配置键的值
|
||||
type SysConfigGetValueInp struct {
|
||||
Key string
|
||||
}
|
||||
type SysConfigGetValueModel struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// 名称是否唯一
|
||||
type SysConfigNameUniqueInp struct {
|
||||
Name string
|
||||
Id int64
|
||||
}
|
||||
|
||||
type SysConfigNameUniqueModel struct {
|
||||
IsUnique bool
|
||||
}
|
||||
|
||||
// 最大排序
|
||||
type SysConfigMaxSortInp struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type SysConfigMaxSortModel struct {
|
||||
Sort int
|
||||
}
|
||||
|
||||
// 修改/新增字典数据
|
||||
type SysConfigEditInp struct {
|
||||
entity.SysConfig
|
||||
}
|
||||
type SysConfigEditModel struct{}
|
||||
|
||||
// 删除字典类型
|
||||
type SysConfigDeleteInp struct {
|
||||
Id interface{}
|
||||
}
|
||||
type SysConfigDeleteModel struct{}
|
||||
|
||||
// 获取信息
|
||||
type SysConfigViewInp struct {
|
||||
Id string
|
||||
}
|
||||
|
||||
type SysConfigViewModel struct {
|
||||
entity.SysConfig
|
||||
}
|
||||
|
||||
// 获取列表
|
||||
type SysConfigListInp struct {
|
||||
Page int
|
||||
Limit int
|
||||
Name string
|
||||
Code string
|
||||
DeptId int
|
||||
Mobile int
|
||||
Username string
|
||||
Realname string
|
||||
StartTime string
|
||||
EndTime string
|
||||
Status int
|
||||
}
|
||||
|
||||
type SysConfigListModel struct {
|
||||
entity.SysConfig
|
||||
DeptName string `json:"dept_name"`
|
||||
RoleName string `json:"role_name"`
|
||||
}
|
||||
26
hotgo-server/app/form/input/sys_log_input.go
Normal file
26
hotgo-server/app/form/input/sys_log_input.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package input
|
||||
|
||||
import (
|
||||
"github.com/bufanyun/hotgo/app/model/entity"
|
||||
)
|
||||
|
||||
// 获取菜单列表
|
||||
type LogListInp struct {
|
||||
Page int
|
||||
Limit int
|
||||
Module string
|
||||
MemberId int
|
||||
TakeUpTime int
|
||||
Method string
|
||||
Url string
|
||||
Ip string
|
||||
ErrorCode string
|
||||
StartTime string
|
||||
EndTime string
|
||||
}
|
||||
|
||||
type LogListModel struct {
|
||||
entity.SysLog
|
||||
MemberName string `json:"member_name"`
|
||||
Region string `json:"region"`
|
||||
}
|
||||
Reference in New Issue
Block a user