Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Resources = &controller.Controllers{ Controllers: []controller.Controller{ securityController, openapi.Resources, mapi.Resources, api.Resources, }, }
Functions ¶
func AddController ¶ added in v0.0.3
func AddController(c controller.Controller)
func AddControllers ¶ added in v0.0.3
func AddControllers(cs ...controller.Controller)
func InitRouter ¶
Types ¶
type RegisterForm ¶
type SecurityController ¶
type SecurityController struct { controller.ResourceController MobileValidator *SmsCode.SmsCodeValidator `inject:"smsCodeValidator"` UserService *service.UserService `inject:"userService"` InviteCodeService *service.InviteCodeService `inject:"inviteCodeService"` }
func (*SecurityController) ChangeRegister ¶
func (o *SecurityController) ChangeRegister(c *gin.Context)
*
- PUT /register
func (*SecurityController) InitRouter ¶
func (o *SecurityController) InitRouter(g *gin.RouterGroup) *gin.RouterGroup
func (*SecurityController) Register ¶
func (u *SecurityController) Register(c *gin.Context)
@Summary 注册新用户 (由用户主动发起) @Router /register [POST]
Click to show internal directories.
Click to hide internal directories.