mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-05 21:20:06 +00:00
feat: 绑定 oauth2
This commit is contained in:
@@ -4,6 +4,15 @@ const (
|
||||
ApiErrorUnauthorized = 10001
|
||||
)
|
||||
|
||||
type Oauth2LoginResponse struct {
|
||||
Redirect string `json:"redirect,omitempty"`
|
||||
}
|
||||
|
||||
type Oauth2Callback struct {
|
||||
State string `json:"state,omitempty"`
|
||||
Code string `json:"code,omitempty"`
|
||||
}
|
||||
|
||||
type LoginRequest struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user