mirror of https://github.com/1Panel-dev/1Panel
feat: Change AppDto to AppItem (#7680)
parent
070f61e229
commit
ec3024f2c3
|
@ -10,7 +10,7 @@ import (
|
|||
)
|
||||
|
||||
type AppRes struct {
|
||||
Items []*AppDto `json:"items"`
|
||||
Items []*AppItem `json:"items"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ type AppDTO struct {
|
|||
Tags []model.Tag `json:"tags"`
|
||||
}
|
||||
|
||||
type AppDto struct {
|
||||
type AppItem struct {
|
||||
Name string `json:"name"`
|
||||
Key string `json:"key"`
|
||||
ID uint `json:"id"`
|
||||
|
|
|
@ -89,9 +89,9 @@ func (a AppService) PageApp(req request.AppSearch) (interface{}, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var appDTOs []*response.AppDto
|
||||
var appDTOs []*response.AppItem
|
||||
for _, ap := range apps {
|
||||
appDTO := &response.AppDto{
|
||||
appDTO := &response.AppItem{
|
||||
ID: ap.ID,
|
||||
Name: ap.Name,
|
||||
Key: ap.Key,
|
||||
|
|
Loading…
Reference in New Issue