feat:优化项目信息
This commit is contained in:
@ -424,6 +424,9 @@ func registerEnterpriseAPI(app *gin.Engine) {
|
||||
apiPrefix + "/v1/account/login",
|
||||
apiPrefix + "/v1/account/register",
|
||||
apiPrefix + "/v1/account/authorize",
|
||||
apiPrefix + "/v1/account/reset/password",
|
||||
apiPrefix + "/v1/sms/captcha",
|
||||
apiPrefix + "/v1/sms/captcha/validate",
|
||||
}...)))
|
||||
|
||||
v1.Use(NeedAuthIdentity())
|
||||
@ -438,6 +441,13 @@ func registerEnterpriseAPI(app *gin.Engine) {
|
||||
configV1.GET("/identity", _api.Identity)
|
||||
configV1.GET("/industry", _api.Industry)
|
||||
}
|
||||
// SMS 短信管理
|
||||
smsV1 := v1.Group("/sms")
|
||||
{
|
||||
_api := new(api.Sms)
|
||||
smsV1.POST("/captcha", _api.Captcha)
|
||||
smsV1.POST("/captcha/validate", _api.CaptchaValidate)
|
||||
}
|
||||
// Account 账号管理
|
||||
accountV1 := v1.Group("/account")
|
||||
{
|
||||
@ -446,6 +456,7 @@ func registerEnterpriseAPI(app *gin.Engine) {
|
||||
accountV1.POST("/register", _api.Register)
|
||||
accountV1.POST("/authorize", _api.Authorize)
|
||||
accountV1.POST("/logout", _api.Logout)
|
||||
accountV1.POST("/reset/password", _api.ResetPassword)
|
||||
}
|
||||
// User 用户管理
|
||||
userV1 := v1.Group("/user")
|
||||
|
Reference in New Issue
Block a user