MSP-7042 Add http_method to access_list
This commit is contained in:
1 parent
4932568c64
commit
e865549fdc
12 files changed
+251
-44
No files matched your search
+17
-5
@@ -1,9 +1,10 @@
|
||||
package domain
|
||||
|
||||
type AccessListSetOneRequest struct {
|
||||
AppId int `validate:"required"`
|
||||
Method string `validate:"required"`
|
||||
Value bool
|
||||
AppId int `validate:"required"`
|
||||
HttpMethod string
|
||||
Method string `validate:"required"`
|
||||
Value bool
|
||||
}
|
||||
|
||||
type AccessListSetOneResponse struct {
|
||||
@@ -17,11 +18,22 @@ type AccessListSetListRequest struct {
|
||||
}
|
||||
|
||||
type MethodInfo struct {
|
||||
Method string
|
||||
Value bool
|
||||
HttpMethod string
|
||||
Method string
|
||||
Value bool
|
||||
}
|
||||
|
||||
type AccessListDeleteListRequest struct {
|
||||
AppId int `validate:"required"`
|
||||
Methods []string `validate:"required,min=1"`
|
||||
}
|
||||
|
||||
type AccessListDeleteV2ListRequest struct {
|
||||
AppId int `validate:"required"`
|
||||
Methods []Method `validate:"required,min=1"`
|
||||
}
|
||||
|
||||
type Method struct {
|
||||
HttpMethod string
|
||||
Method string `validate:"required"`
|
||||
}
|
||||
+2
-1
@@ -19,7 +19,8 @@ type AuthData struct {
|
||||
}
|
||||
|
||||
type AuthorizeRequest struct {
|
||||
ApplicationId int `validate:"required"`
|
||||
ApplicationId int `validate:"required"`
|
||||
HttpMethod string
|
||||
Endpoint string `validate:"required"`
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user