提出api中的model到单独model分组 修改dashboard 拼写错误

This commit is contained in:
QM303176530
2020-04-07 22:26:00 +08:00
parent 137db98ee4
commit 2c35adaffc
16 changed files with 106 additions and 85 deletions
+1
View File
@@ -0,0 +1 @@
package model
+60
View File
@@ -0,0 +1,60 @@
package model
import uuid "github.com/satori/go.uuid"
/****************************** common start ****************************************************/
// 分页公用入参结构体
type PageInfo struct {
Page int `json:"page"`
PageSize int `json:"pageSize"`
}
//根据id查询结构体
type GetById struct {
Id float64 `json:"id"`
}
/****************************** common end ****************************************************/
/****************************** api start ****************************************************/
//api分页条件查询及排序结构体
type SearchApiParams struct {
SysApi
PageInfo
OrderKey string `json:"orderKey"`
Desc bool `json:"desc"`
}
/****************************** api end ****************************************************/
/****************************** Authority start ****************************************************/
// 添加角色和menu关系
type AddMenuAuthorityInfo struct {
Menus []SysBaseMenu
AuthorityId string
}
// 根据角色id获取角色
type AuthorityIdInfo struct {
AuthorityId string
}
/****************************** Authority end ****************************************************/
/****************************** user start ****************************************************/
// 修改密码结构体
type ChangePasswordStutrc struct {
Username string `json:"username"`
Password string `json:"password"`
NewPassword string `json:"newPassword"`
}
// 设置用户权限
type SetUserAuth struct {
UUID uuid.UUID `json:"uuid"`
AuthorityId string `json:"authorityId"`
}
/****************************** user end ****************************************************/
-6
View File
@@ -1,6 +0,0 @@
package model
type PageInfo struct {
Page int `json:"page"`
PageSize int `json:"pageSize"`
}