WIP: Restructing auth api and service
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
27
service/service_auth/redirect.go
Normal file
27
service/service_auth/redirect.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package service_auth
|
||||
|
||||
import (
|
||||
"context"
|
||||
"nixcn-cms/service/shared"
|
||||
)
|
||||
|
||||
type RedirectData struct {
|
||||
ClientId string `json:"client_id"`
|
||||
RedirectUri string `json:"redirect_uri"`
|
||||
State string `json:"state"`
|
||||
Code string `json:"code"`
|
||||
}
|
||||
|
||||
type RedirectPayload struct {
|
||||
Context context.Context
|
||||
Data *RedirectData
|
||||
}
|
||||
|
||||
type RedirectResult struct {
|
||||
Common shared.CommonResult
|
||||
Data string
|
||||
}
|
||||
|
||||
func (self *AuthServiceImpl) Redirect(payload *RedirectPayload) (result *RedirectResult) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user