92 lines
2.3 KiB
Go
92 lines
2.3 KiB
Go
package dto
|
|
|
|
import "github.com/shopspring/decimal"
|
|
|
|
type CliProxy struct {
|
|
}
|
|
|
|
type CliProxyTraffics struct {
|
|
Code string `json:"code"`
|
|
Name string `json:"name"`
|
|
States []CliProxyTrafficStates `json:"states"`
|
|
}
|
|
|
|
type CliProxyTrafficStates struct {
|
|
State string `json:"state"`
|
|
}
|
|
|
|
// 获取长效Ip请求
|
|
type CliProxyIPListGetReq struct {
|
|
Code string `json:"code"`
|
|
Lang string `json:"lang" form:"lang"`
|
|
// Token string `json:"token"`
|
|
}
|
|
|
|
type CliProxyIPUseReq struct {
|
|
Day int `json:"day"`
|
|
Id int `json:"id"`
|
|
Code string `json:"code"`
|
|
Lang string `json:"lang"`
|
|
// Token string `json:"token"`
|
|
}
|
|
|
|
type CliProxyTrafficProxyReq struct {
|
|
Area string `json:"area" comment:"国家地区"`
|
|
State string `json:"state" comment:"城市"`
|
|
Port string `json:"port" comment:"端口"`
|
|
}
|
|
|
|
// cliproxy 通用响应
|
|
type CliProxyResultResp[T any] struct {
|
|
Code int `json:"code"`
|
|
Data T `json:"data"`
|
|
Msg string `json:"msg"`
|
|
}
|
|
|
|
type CliProxySigninResp struct {
|
|
Token string `json:"token"`
|
|
Balance decimal.Decimal `json:"balance"`
|
|
}
|
|
|
|
// 长效ip列表响应
|
|
type CliProxyStaticListResp struct {
|
|
City string `json:"city"`
|
|
Code string `json:"code"`
|
|
Country string `json:"country"`
|
|
Id int `json:"id"`
|
|
Ip string `json:"ip"`
|
|
}
|
|
|
|
type CliProxyUserListResp struct {
|
|
List []CliProxyUserListItem `json:"list"`
|
|
Page int `json:"page"`
|
|
Pages int `json:"pages"`
|
|
Total int `json:"total"`
|
|
}
|
|
type CliProxyUserListItem struct {
|
|
Auto bool `json:"auto"`
|
|
City string `json:"city"`
|
|
Code string `json:"code"`
|
|
Days int `json:"days"`
|
|
Expired string `json:"expired"`
|
|
ID int `json:"id"`
|
|
IP string `json:"ip"`
|
|
Mark string `json:"mark"`
|
|
Password string `json:"password"`
|
|
Port int `json:"port"`
|
|
Surplus int `json:"surplus"`
|
|
UseTime string `json:"use_time"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
type CliProxyTrafficServerResp struct {
|
|
Area string `json:"area"`
|
|
HostName string `json:"hostname"`
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
type MemberProxyChangeAutoRenewalReq struct {
|
|
ProxyId int `json:"proxyId"`
|
|
AutoRenewal bool `json:"autoRenewal"`
|
|
}
|