Documentation
¶
Overview ¶
* @Author: SpenserCai * @Date: 2023-09-30 12:53:43 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-03 16:45:54 * @Description: file content
* @Author: SpenserCai * @Date: 2023-09-29 19:24:52 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-02 21:08:46 * @Description: file content
* @Author: SpenserCai * @Date: 2023-09-29 21:25:55 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-09-30 21:57:18 * @Description: file content
* @Author: SpenserCai * @Date: 2023-10-04 20:26:32 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-06 17:21:04 * @Description: file content
* @Author: SpenserCai * @Date: 2023-09-29 21:26:43 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-04 00:12:56 * @Description: file content
* @Author: SpenserCai * @Date: 2023-09-29 21:26:59 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-09-30 00:35:03 * @Description: file content
Index ¶
- type AuthResponse
- type BusinessBase
- func (b BusinessBase) GenRandomState() []string
- func (b BusinessBase) GetDiscordAuthUrl() string
- func (b BusinessBase) GetDiscordOauth2Config() oauth2.Config
- func (b BusinessBase) GetUserInfo(token string) (*DbotUser.UserInfo, error)
- func (b BusinessBase) SetAuthHandler()
- func (b BusinessBase) SetLoginHandler()
- func (b BusinessBase) SetUserHistoryHandler()
- func (b BusinessBase) SetUserInfoHandler()
- func (b BusinessBase) SetUserListHandler()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type AuthResponse struct {
// contains filtered or unexported fields
}
func (AuthResponse) WriteResponse ¶
func (ap AuthResponse) WriteResponse(rw http.ResponseWriter, p runtime.Producer)
type BusinessBase ¶
type BusinessBase struct{}
func (BusinessBase) GenRandomState ¶
func (b BusinessBase) GenRandomState() []string
func (BusinessBase) GetDiscordAuthUrl ¶
func (b BusinessBase) GetDiscordAuthUrl() string
func (BusinessBase) GetDiscordOauth2Config ¶
func (b BusinessBase) GetDiscordOauth2Config() oauth2.Config
func (BusinessBase) GetUserInfo ¶
func (b BusinessBase) GetUserInfo(token string) (*DbotUser.UserInfo, error)
func (BusinessBase) SetAuthHandler ¶
func (b BusinessBase) SetAuthHandler()
func (BusinessBase) SetLoginHandler ¶
func (b BusinessBase) SetLoginHandler()
func (BusinessBase) SetUserHistoryHandler ¶
func (b BusinessBase) SetUserHistoryHandler()
func (BusinessBase) SetUserInfoHandler ¶
func (b BusinessBase) SetUserInfoHandler()
func (BusinessBase) SetUserListHandler ¶
func (b BusinessBase) SetUserListHandler()