mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 20:35:16 +00:00
Unifies the output of the routing layer and the isolated response structure
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package response
|
||||
|
||||
import "gin-vue-admin/model"
|
||||
|
||||
type FilePathResponse struct {
|
||||
FilePath string `json:"filePath"`
|
||||
}
|
||||
|
||||
type FileResponse struct {
|
||||
File model.ExaFile `json:"file"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "gin-vue-admin/model"
|
||||
|
||||
type ExaCustomerResponse struct {
|
||||
Customer model.ExaCustomer `json:"customer"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "gin-vue-admin/model"
|
||||
|
||||
type ExaFileResponse struct {
|
||||
File model.ExaFileUploadAndDownload `json:"file"`
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package response
|
||||
|
||||
import "gin-vue-admin/model"
|
||||
|
||||
type SysAPIResponse struct {
|
||||
Api model.SysApi `json:"api"`
|
||||
}
|
||||
|
||||
type SysAPIListResponse struct {
|
||||
Apis []model.SysApi `json:"apis"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "gin-vue-admin/model"
|
||||
|
||||
type SysAuthorityResponse struct {
|
||||
Authority model.SysAuthority `json:"authority"`
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package response
|
||||
|
||||
type SysCaptchaResponse struct {
|
||||
CaptchaId string `json:"captchaId"`
|
||||
PicPath string `json:"picPath"`
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package response
|
||||
|
||||
type PolicyPathResponse struct {
|
||||
Paths []string `json:"paths"`
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package response
|
||||
|
||||
import "gin-vue-admin/model"
|
||||
|
||||
type SysMenusResponse struct {
|
||||
Menus []model.SysMenu `json:"menus"`
|
||||
}
|
||||
|
||||
type SysBaseMenusResponse struct {
|
||||
Menus []model.SysBaseMenu `json:"menus"`
|
||||
}
|
||||
|
||||
type SysBaseMenuResponse struct {
|
||||
Menu model.SysBaseMenu `json:"menu"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "gin-vue-admin/config"
|
||||
|
||||
type SysConfigResponse struct {
|
||||
Config config.Server `json:"config"`
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"gin-vue-admin/model"
|
||||
)
|
||||
|
||||
type SysUserResponse struct {
|
||||
User model.SysUser `json:"user"`
|
||||
}
|
||||
|
||||
type LoginResponse struct {
|
||||
User model.SysUser `json:"user"`
|
||||
Token string `json:"token"`
|
||||
ExpiresAt int64 `json:"expiresAt"`
|
||||
}
|
||||
Reference in New Issue
Block a user