Documentation
¶
Overview ¶
Package authmethod holds the identity module's admin handlers of the authentication methods: their configuration, the sender platforms and the test sends.
Index ¶
- func GetAuthMethodConfigHandler(service identity.Service) app.HandlerFunc
- func GetAuthMethodListHandler(service identity.Service) app.HandlerFunc
- func GetEmailPlatformHandler(service identity.Service) app.HandlerFunc
- func GetSmsPlatformHandler(service identity.Service) app.HandlerFunc
- func TestEmailSendHandler(service identity.Service) app.HandlerFunc
- func TestSmsSendHandler(service identity.Service) app.HandlerFunc
- func UpdateAuthMethodConfigHandler(service identity.Service) app.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthMethodConfigHandler ¶
func GetAuthMethodConfigHandler(service identity.Service) app.HandlerFunc
GetAuthMethodConfigHandler documents Get auth method config.
@Summary Get auth method config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request query dto.GetAuthMethodConfigRequest false "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.AuthMethodConfig} @Router /v1/admin/auth-method/config [get]
func GetAuthMethodListHandler ¶
func GetAuthMethodListHandler(service identity.Service) app.HandlerFunc
GetAuthMethodListHandler documents Get auth method list.
@Summary Get auth method list @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.GetAuthMethodListResponse} @Router /v1/admin/auth-method/list [get]
func GetEmailPlatformHandler ¶
func GetEmailPlatformHandler(service identity.Service) app.HandlerFunc
GetEmailPlatformHandler documents Get email support platform.
@Summary Get email support platform @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.AuthPlatformResponse} @Router /v1/admin/auth-method/email_platform [get]
func GetSmsPlatformHandler ¶
func GetSmsPlatformHandler(service identity.Service) app.HandlerFunc
GetSmsPlatformHandler documents Get sms support platform.
@Summary Get sms support platform @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.AuthPlatformResponse} @Router /v1/admin/auth-method/sms_platform [get]
func TestEmailSendHandler ¶
func TestEmailSendHandler(service identity.Service) app.HandlerFunc
TestEmailSendHandler documents Test email send.
@Summary Test email send @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.TestEmailSendRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/auth-method/test_email_send [post]
func TestSmsSendHandler ¶
func TestSmsSendHandler(service identity.Service) app.HandlerFunc
TestSmsSendHandler documents Test sms send.
@Summary Test sms send @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.TestSmsSendRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/auth-method/test_sms_send [post]
func UpdateAuthMethodConfigHandler ¶
func UpdateAuthMethodConfigHandler(service identity.Service) app.HandlerFunc
UpdateAuthMethodConfigHandler documents Update auth method config.
@Summary Update auth method config @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.UpdateAuthMethodConfigRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.AuthMethodConfig} @Router /v1/admin/auth-method/config [put]
Types ¶
This section is empty.