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-10-09 17:31:54 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-09 18:08:41 * @Description: file content
* @Author: SpenserCai * @Date: 2023-10-09 20:01:58 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-18 22:11:22 * @Description: file content
* @Author: SpenserCai * @Date: 2023-10-09 11:01:47 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-09 11:03:58 * @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-09 12:48:04 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-09 12:50:53 * @Description: file content
* @Author: SpenserCai * @Date: 2023-10-19 14:18:07 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-19 14:21:03 * @Description: file content
* @Author: SpenserCai * @Date: 2023-10-19 14:11:00 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-19 14:14:32 * @Description: file content
* @Author: SpenserCai * @Date: 2023-10-04 20:26:32 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-18 22:08:17 * @Description: file content
* @Author: SpenserCai * @Date: 2023-09-29 21:26:43 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-19 14:09:38 * @Description: file content
* @Author: SpenserCai * @Date: 2023-09-29 21:26:59 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-19 14:09:53 * @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) SetClusterHandler()
- func (b BusinessBase) SetCommunityHistoryHandler()
- func (b BusinessBase) SetDiscordServerHandler()
- func (b BusinessBase) SetLoginHandler()
- func (b BusinessBase) SetOpenDiscordServerHandler()
- func (b BusinessBase) SetSetUserEnableHandler()
- func (b BusinessBase) SetSetUserPrivateHandler()
- 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) SetClusterHandler ¶ added in v1.1.2
func (b BusinessBase) SetClusterHandler()
func (BusinessBase) SetCommunityHistoryHandler ¶ added in v1.1.3
func (b BusinessBase) SetCommunityHistoryHandler()
func (BusinessBase) SetDiscordServerHandler ¶ added in v1.1.2
func (b BusinessBase) SetDiscordServerHandler()
func (BusinessBase) SetLoginHandler ¶
func (b BusinessBase) SetLoginHandler()
func (BusinessBase) SetOpenDiscordServerHandler ¶ added in v1.1.2
func (b BusinessBase) SetOpenDiscordServerHandler()
func (BusinessBase) SetSetUserEnableHandler ¶ added in v1.3.3
func (b BusinessBase) SetSetUserEnableHandler()
func (BusinessBase) SetSetUserPrivateHandler ¶ added in v1.3.3
func (b BusinessBase) SetSetUserPrivateHandler()
func (BusinessBase) SetUserHistoryHandler ¶
func (b BusinessBase) SetUserHistoryHandler()
func (BusinessBase) SetUserInfoHandler ¶
func (b BusinessBase) SetUserInfoHandler()
func (BusinessBase) SetUserListHandler ¶
func (b BusinessBase) SetUserListHandler()