style
This commit is contained in:
parent
cb5bf5aae3
commit
d0aad68bb0
@ -22,6 +22,11 @@ type (
|
|||||||
CurrentTime string `json:"current_time"`
|
CurrentTime string `json:"current_time"`
|
||||||
Ratio float32 `json:"ratio"`
|
Ratio float32 `json:"ratio"`
|
||||||
}
|
}
|
||||||
|
ModuleConfig {
|
||||||
|
Secret string `json:"secret"` // 通讯密钥
|
||||||
|
ServiceName string `json:"service_name"` // 服务名称
|
||||||
|
ServiceVersion string `json:"service_version"` // 服务版本
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@server (
|
@server (
|
||||||
@ -125,5 +130,9 @@ service ppanel {
|
|||||||
@doc "PreView Node Multiplier"
|
@doc "PreView Node Multiplier"
|
||||||
@handler PreViewNodeMultiplier
|
@handler PreViewNodeMultiplier
|
||||||
get /node_multiplier/preview returns (PreViewNodeMultiplierResponse)
|
get /node_multiplier/preview returns (PreViewNodeMultiplierResponse)
|
||||||
|
|
||||||
|
@doc "Get Module Config"
|
||||||
|
@handler GetModuleConfig
|
||||||
|
get /module returns (ModuleConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -14,11 +14,9 @@ type (
|
|||||||
QuerySubscribeListRequest {
|
QuerySubscribeListRequest {
|
||||||
Language string `form:"language"`
|
Language string `form:"language"`
|
||||||
}
|
}
|
||||||
|
|
||||||
QueryUserSubscribeNodeListResponse {
|
QueryUserSubscribeNodeListResponse {
|
||||||
List []UserSubscribeInfo `json:"list"`
|
List []UserSubscribeInfo `json:"list"`
|
||||||
}
|
}
|
||||||
|
|
||||||
UserSubscribeInfo {
|
UserSubscribeInfo {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
UserId int64 `json:"user_id"`
|
UserId int64 `json:"user_id"`
|
||||||
@ -38,7 +36,6 @@ type (
|
|||||||
IsTryOut bool `json:"is_try_out"`
|
IsTryOut bool `json:"is_try_out"`
|
||||||
Nodes []*UserSubscribeNodeInfo `json:"nodes"`
|
Nodes []*UserSubscribeNodeInfo `json:"nodes"`
|
||||||
}
|
}
|
||||||
|
|
||||||
UserSubscribeNodeInfo {
|
UserSubscribeNodeInfo {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|||||||
@ -97,12 +97,10 @@ type (
|
|||||||
Email string `json:"email" validate:"required"`
|
Email string `json:"email" validate:"required"`
|
||||||
Code string `json:"code" validate:"required"`
|
Code string `json:"code" validate:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
GetDeviceListResponse {
|
GetDeviceListResponse {
|
||||||
List []UserDevice `json:"list"`
|
List []UserDevice `json:"list"`
|
||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
}
|
}
|
||||||
|
|
||||||
UnbindDeviceRequest {
|
UnbindDeviceRequest {
|
||||||
Id int64 `json:"id" validate:"required"`
|
Id int64 `json:"id" validate:"required"`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,14 +135,12 @@ type (
|
|||||||
EnableDomainSuffix bool `json:"enable_domain_suffix"`
|
EnableDomainSuffix bool `json:"enable_domain_suffix"`
|
||||||
DomainSuffixList string `json:"domain_suffix_list"`
|
DomainSuffixList string `json:"domain_suffix_list"`
|
||||||
}
|
}
|
||||||
|
|
||||||
DeviceAuthticateConfig {
|
DeviceAuthticateConfig {
|
||||||
Enable bool `json:"enable"`
|
Enable bool `json:"enable"`
|
||||||
ShowAds bool `json:"show_ads"`
|
ShowAds bool `json:"show_ads"`
|
||||||
EnableSecurity bool `json:"enable_security"`
|
EnableSecurity bool `json:"enable_security"`
|
||||||
OnlyRealDevice bool `json:"only_real_device"`
|
OnlyRealDevice bool `json:"only_real_device"`
|
||||||
}
|
}
|
||||||
|
|
||||||
RegisterConfig {
|
RegisterConfig {
|
||||||
StopRegister bool `json:"stop_register"`
|
StopRegister bool `json:"stop_register"`
|
||||||
EnableTrial bool `json:"enable_trial"`
|
EnableTrial bool `json:"enable_trial"`
|
||||||
@ -673,7 +671,6 @@ type (
|
|||||||
List []SubscribeGroup `json:"list"`
|
List []SubscribeGroup `json:"list"`
|
||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
}
|
}
|
||||||
|
|
||||||
GetUserSubscribeTrafficLogsRequest {
|
GetUserSubscribeTrafficLogsRequest {
|
||||||
Page int `form:"page"`
|
Page int `form:"page"`
|
||||||
Size int `form:"size"`
|
Size int `form:"size"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user