feat 添加response
This commit is contained in:
parent
f1488e33ff
commit
99c3e85dbc
6
pkg/web/response.go
Normal file
6
pkg/web/response.go
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package web
|
||||||
|
|
||||||
|
type ListResponse[E any] struct {
|
||||||
|
Total int64 `json:"total"`
|
||||||
|
List []E `json:"list"`
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user