feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -13,7 +13,7 @@ const (
type Response struct {
Code string
Result interface{}
Result any
Msg string
}
@ -31,13 +31,13 @@ func Invalid() string {
return string(str)
}
func Success(data interface{}) Response {
func Success(data any) Response {
response := Response{Code: SuccessCode, Result: data}
return response
}
func Page(data interface{}, count int64) Response {
response := Response{Code: SuccessCode, Result: map[string]interface{}{
func Page(data any, count int64) Response {
response := Response{Code: SuccessCode, Result: map[string]any{
"List": data,
"Count": count,
}}