28 lines
503 B
Go
28 lines
503 B
Go
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) {
|
|
|
|
}
|