forked from jiy1012/cas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
policy_response.go
71 lines (62 loc) · 1.1 KB
/
policy_response.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package cas
type PolicyResponse struct {
Success bool
Code int64
Message string
Data []PolicyData
}
type PolicyData struct {
Id int64
AppId int64
PolicyKey string
PolicyName string
Remark string
Policys []Policy
Status int64
CreateTime int64
UpdateTime int64
}
type Policy struct {
Effect string
Actions []string
Resources []Resource
IpCondition []IpCondition
TimeCondition []TimeCondition
}
type Resource struct {
FlagKey string
FlagOptionKey string
}
type IpCondition struct {
Equal string
NotBelong string
Belong string
}
type TimeCondition struct {
Equal int64
Greater int64
Less int64
}
type PolicyByUrlResponse struct {
Success bool
Code int64
Message string
Data []Policy
}
type FlagListResponse struct {
Success bool
Code int64
Message string
Data []FlagDetail
}
type FlagDetail struct {
Id int64
AppId int64
FlagId int64
FlagoptionKey string
FlagoptionName string
CustDesc string
Remark string
CreateTime int64
UpdateTime int64
}