Files
APIPark/module/service/dto/input.go
T
2024-08-30 18:33:35 +08:00

51 lines
1.2 KiB
Go

package service_dto
type CreateService struct {
Id string `json:"id"`
Name string `json:"name"`
Prefix string `json:"prefix"`
Description string `json:"description"`
ServiceType string `json:"service_type"`
Logo string `json:"logo"`
Tags []string `json:"tags"`
Catalogue string `json:"catalogue"`
AsApp *bool `json:"as_app"`
AsServer *bool `json:"as_server"`
}
type EditService struct {
Name *string `json:"name"`
Description *string `json:"description"`
ServiceType *string `json:"service_type"`
Catalogue *string `json:"catalogue"`
Logo *string `json:"logo"`
Tags *[]string `json:"tags"`
}
type CreateApp struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
}
type UpdateApp struct {
Name *string `json:"name"`
Description *string `json:"description"`
}
type EditMemberRole struct {
Roles []string `json:"roles"`
}
type Users struct {
Users []string `json:"users" aocheck:"user"`
}
type EditProjectMember struct {
Roles []string `json:"roles" aocheck:"role"`
}
type SaveServiceDoc struct {
Doc string `json:"doc"`
}