first commit

This commit is contained in:
Blizzard
2026-02-27 13:54:01 +08:00
commit fc585fa4df
127 changed files with 18548 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package request
import "github.com/mojocn/base64Captcha"
// configJsonBody json request body.
type CaptchaReqBody struct {
Id string
CaptchaType string
VerifyValue string
DriverAudio *base64Captcha.DriverAudio
DriverString *base64Captcha.DriverString
DriverChinese *base64Captcha.DriverChinese
DriverMath *base64Captcha.DriverMath
DriverDigit *base64Captcha.DriverDigit
}
+18
View File
@@ -0,0 +1,18 @@
package request
import (
"github.com/golang-jwt/jwt/v5"
"github.com/google/uuid"
)
type CustomClaims struct {
BaseClaims
BufferTime int64
jwt.RegisteredClaims
}
type BaseClaims struct {
UUID uuid.UUID
ID string
Account string
}
+8
View File
@@ -0,0 +1,8 @@
package request
import common "sundynix-go/model/commom/request"
type GetOssFileList struct {
common.PageInfo
Name string `json:"name" form:"name"`
}
+9
View File
@@ -0,0 +1,9 @@
package request
import common "sundynix-go/model/commom/request"
type GetClientList struct {
common.PageInfo
ClientId string `json:"clientId" form:"clientId"`
Name string `json:"name" form:"name"`
}
+6
View File
@@ -0,0 +1,6 @@
package request
type GetMenuTree struct {
Category int `json:"category" form:"category"`
ParentId string `json:"parentId" form:"parentId"`
}
@@ -0,0 +1,14 @@
package request
import (
common "sundynix-go/model/commom/request"
)
type GetOperationRecordList struct {
common.PageInfo
Ip string `json:"ip" form:"ip"`
Method string `json:"method" form:"method"`
Path string `json:"path" form:"path"`
UserId string `json:"userId" form:"userId"`
Status int `json:"status" form:"status"`
}
+14
View File
@@ -0,0 +1,14 @@
package request
import common "sundynix-go/model/commom/request"
type GetRoleList struct {
common.PageInfo
Code string `json:"code" form:"code"`
Name string `json:"name" form:"name"`
}
type GrantMenu struct {
RoleId string `json:"roleId"`
MenuIds []string `json:"menuIds"`
}
+26
View File
@@ -0,0 +1,26 @@
package request
import common "sundynix-go/model/commom/request"
type Login struct {
Account string `json:"account"`
Password string `json:"password"`
Captcha string `json:"captcha"`
CaptchaId string `json:"captchaId"`
}
type GetUserList struct {
common.PageInfo
Account string `json:"account" form:"account"`
Phone string `json:"phone" form:"phone"`
}
type ChangePwd struct {
Id string `json:"id"`
NewPwd string `json:"newPwd"`
}
type GrantRole struct {
UserId string `json:"userId"`
RoleIds []string `json:"roleIds"`
}