Initial commit

This commit is contained in:
2025-05-11 20:32:14 +08:00
commit d97247159f
80 changed files with 13013 additions and 0 deletions

14
server/model/response.go Normal file
View File

@@ -0,0 +1,14 @@
package model
type Response[T any] struct {
Success bool `json:"success"`
Data T `json:"data,omitempty"`
Message string `json:"message,omitempty"`
}
type PageResponse[T any] struct {
Success bool `json:"success"`
TotalPages int `json:"totalPages"`
Data []T `json:"data"`
Message string `json:"message,omitempty"`
}