更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -16,14 +16,10 @@ import (
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
// PlatformTenantApplyController 平台端「企业创建审核」
|
||||
// 审批注册用户提交的创建企业申请:通过 → 自动建租户并把申请人绑定为租户管理员。
|
||||
type PlatformTenantApplyController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// platformClaims 入驻申请的审核接口只在平台端使用:必须是 platform 端令牌。
|
||||
// 此前不判端,租户自己的令牌就能批准自己入驻,等于把审核权下发到了被审核方。
|
||||
func (c *PlatformTenantApplyController) platformClaims() (*jwtutil.Claims, error) {
|
||||
return identity.Claims(c.Ctx.Request.Header.Get("Authorization"), identity.EndPlatform)
|
||||
}
|
||||
@@ -51,7 +47,6 @@ func (c *PlatformTenantApplyController) readJSON(v interface{}) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// reviewerName 平台审核人姓名
|
||||
func (c *PlatformTenantApplyController) reviewerName(claims *jwtutil.Claims) string {
|
||||
var admin models.AdminUser
|
||||
if err := models.Orm.QueryTable(new(models.AdminUser)).
|
||||
@@ -62,7 +57,6 @@ func (c *PlatformTenantApplyController) reviewerName(claims *jwtutil.Claims) str
|
||||
return claims.Username
|
||||
}
|
||||
|
||||
// List GET /platform/tenantApply/list?page=1&pageSize=20&type=&status=
|
||||
func (c *PlatformTenantApplyController) List() {
|
||||
claims, err := c.platformClaims()
|
||||
if err != nil {
|
||||
@@ -128,7 +122,6 @@ func (c *PlatformTenantApplyController) List() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Detail GET /platform/tenantApply/detail/:id
|
||||
func (c *PlatformTenantApplyController) Detail() {
|
||||
claims, err := c.platformClaims()
|
||||
if err != nil {
|
||||
@@ -155,7 +148,6 @@ func (c *PlatformTenantApplyController) Detail() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Approve POST /platform/tenantApply/approve/:id
|
||||
func (c *PlatformTenantApplyController) Approve() {
|
||||
claims, err := c.platformClaims()
|
||||
if err != nil {
|
||||
@@ -181,7 +173,6 @@ func (c *PlatformTenantApplyController) Approve() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Reject POST /platform/tenantApply/reject/:id { reason }
|
||||
func (c *PlatformTenantApplyController) Reject() {
|
||||
claims, err := c.platformClaims()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user