✨ Init
This commit is contained in:
11
model/system/response/sys_api.go
Normal file
11
model/system/response/sys_api.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package response
|
||||
|
||||
import "miniapp/model/system"
|
||||
|
||||
type SysAPIResponse struct {
|
||||
Api system.SysApi `json:"api"`
|
||||
}
|
||||
|
||||
type SysAPIListResponse struct {
|
||||
Apis []system.SysApi `json:"apis"`
|
||||
}
|
12
model/system/response/sys_authority.go
Normal file
12
model/system/response/sys_authority.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package response
|
||||
|
||||
import "miniapp/model/system"
|
||||
|
||||
type SysAuthorityResponse struct {
|
||||
Authority system.SysAuthority `json:"authority"`
|
||||
}
|
||||
|
||||
type SysAuthorityCopyResponse struct {
|
||||
Authority system.SysAuthority `json:"authority"`
|
||||
OldAuthorityId uint `json:"oldAuthorityId"` // 旧角色ID
|
||||
}
|
5
model/system/response/sys_authority_btn.go
Normal file
5
model/system/response/sys_authority_btn.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package response
|
||||
|
||||
type SysAuthorityBtnRes struct {
|
||||
Selected []uint `json:"selected"`
|
||||
}
|
16
model/system/response/sys_auto_code.go
Normal file
16
model/system/response/sys_auto_code.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package response
|
||||
|
||||
type Db struct {
|
||||
Database string `json:"database" gorm:"column:database"`
|
||||
}
|
||||
|
||||
type Table struct {
|
||||
TableName string `json:"tableName" gorm:"column:table_name"`
|
||||
}
|
||||
|
||||
type Column struct {
|
||||
DataType string `json:"dataType" gorm:"column:data_type"`
|
||||
ColumnName string `json:"columnName" gorm:"column:column_name"`
|
||||
DataTypeLong string `json:"dataTypeLong" gorm:"column:data_type_long"`
|
||||
ColumnComment string `json:"columnComment" gorm:"column:column_comment"`
|
||||
}
|
14
model/system/response/sys_auto_code_history.go
Normal file
14
model/system/response/sys_auto_code_history.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package response
|
||||
|
||||
import "time"
|
||||
|
||||
type AutoCodeHistory struct {
|
||||
ID uint `json:"ID" gorm:"column:id"`
|
||||
CreatedAt time.Time `json:"CreatedAt" gorm:"column:created_at"`
|
||||
UpdatedAt time.Time `json:"UpdatedAt" gorm:"column:updated_at"`
|
||||
BusinessDB string `json:"businessDB" gorm:"column:business_db"`
|
||||
TableName string `json:"tableName" gorm:"column:table_name"`
|
||||
StructName string `json:"structName" gorm:"column:struct_name"`
|
||||
StructCNName string `json:"structCNName" gorm:"column:struct_cn_name"`
|
||||
Flag int `json:"flag" gorm:"column:flag"`
|
||||
}
|
8
model/system/response/sys_captcha.go
Normal file
8
model/system/response/sys_captcha.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package response
|
||||
|
||||
type SysCaptchaResponse struct {
|
||||
CaptchaId string `json:"captchaId"`
|
||||
PicPath string `json:"picPath"`
|
||||
CaptchaLength int `json:"captchaLength"`
|
||||
OpenCaptcha bool `json:"openCaptcha"`
|
||||
}
|
9
model/system/response/sys_casbin.go
Normal file
9
model/system/response/sys_casbin.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"miniapp/model/system/request"
|
||||
)
|
||||
|
||||
type PolicyPathResponse struct {
|
||||
Paths []request.CasbinInfo `json:"paths"`
|
||||
}
|
4
model/system/response/sys_chatgpt.go
Normal file
4
model/system/response/sys_chatgpt.go
Normal file
@@ -0,0 +1,4 @@
|
||||
package response
|
||||
|
||||
type ChatGptResponse struct {
|
||||
}
|
15
model/system/response/sys_menu.go
Normal file
15
model/system/response/sys_menu.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package response
|
||||
|
||||
import "miniapp/model/system"
|
||||
|
||||
type SysMenusResponse struct {
|
||||
Menus []system.SysMenu `json:"menus"`
|
||||
}
|
||||
|
||||
type SysBaseMenusResponse struct {
|
||||
Menus []system.SysBaseMenu `json:"menus"`
|
||||
}
|
||||
|
||||
type SysBaseMenuResponse struct {
|
||||
Menu system.SysBaseMenu `json:"menu"`
|
||||
}
|
7
model/system/response/sys_system.go
Normal file
7
model/system/response/sys_system.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "miniapp/config"
|
||||
|
||||
type SysConfigResponse struct {
|
||||
Config config.Server `json:"config"`
|
||||
}
|
15
model/system/response/sys_user.go
Normal file
15
model/system/response/sys_user.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"miniapp/model/system"
|
||||
)
|
||||
|
||||
type SysUserResponse struct {
|
||||
User system.SysUser `json:"user"`
|
||||
}
|
||||
|
||||
type LoginResponse struct {
|
||||
User system.SysUser `json:"user"`
|
||||
Token string `json:"token"`
|
||||
ExpiresAt int64 `json:"expiresAt"`
|
||||
}
|
Reference in New Issue
Block a user