mirror of
https://github.com/0x2E/fusion.git
synced 2025-06-08 05:27:15 +09:00
27 lines
498 B
Go
27 lines
498 B
Go
package server
|
|
|
|
type GroupForm struct {
|
|
ID uint `json:"id"`
|
|
Name *string `json:"name"`
|
|
}
|
|
|
|
type RespGroupAll struct {
|
|
Groups []*GroupForm `json:"groups"`
|
|
}
|
|
|
|
type ReqGroupCreate struct {
|
|
Name *string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type RespGroupCreate struct {
|
|
ID uint `json:"id"`
|
|
}
|
|
|
|
type ReqGroupUpdate struct {
|
|
ID uint `param:"id" validate:"required"`
|
|
Name *string `json:"name" validate:"required"`
|
|
}
|
|
|
|
type ReqGroupDelete struct {
|
|
ID uint `param:"id" validate:"required"`
|
|
}
|