-
Notifications
You must be signed in to change notification settings - Fork 1
/
group_proto.go
46 lines (35 loc) · 1.04 KB
/
group_proto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2020 Apulis Technology Inc. All rights reserved.
package node
import (
"github.com/apulis/ApulisEdge/cloud/pkg/domain/node/entity"
)
// TODO add param validate, like node.ListEdgeNodesReq
// Create node group
type CreateNodeGroupReq struct {
GroupName string `json:"name" validate:"required"`
}
type CreateNodeGroupRsp struct {
Group *nodeentity.NodeGroupInfo `json:"node"`
}
// List group
type ListNodeGroupReq struct {
PageNum int `json:"pageNum" validate:"required,gte=1,lte=1000"`
PageSize int `json:"pageSize" validate:"required,gte=1,lte=1000"`
}
type ListNodeGroupRsp struct {
Total int `json:"total"`
Groups *[]nodeentity.NodeGroupInfo `json:"groups"`
}
// Describe group
type DescribeNodeGroupReq struct {
GroupName string `json:"groupName" validate:"required"`
}
type DescribeNodeGroupRsp struct {
Group *nodeentity.NodeGroupInfo `json:"group"`
}
// Delete node group
type DeleteNodeGroupReq struct {
GroupName string `json:"groupName" validate:"required"`
}
type DeleteNodeGroupRsp struct {
}