更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -15,8 +15,6 @@ import (
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
// BackendTenantApplyController 租户端「加入申请」审批
|
||||
// 数据按 JWT tid 隔离:只处理目标企业为本租户的 join 申请。
|
||||
type BackendTenantApplyController struct {
|
||||
beego.Controller
|
||||
}
|
||||
@@ -48,7 +46,6 @@ func (c *BackendTenantApplyController) readJSON(v interface{}) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// reviewerName 当前审核人姓名(租户用户表 name,兜底 JWT username)
|
||||
func (c *BackendTenantApplyController) reviewerName(claims *jwtutil.Claims) string {
|
||||
var row models.SystemTenantUser
|
||||
if err := models.Orm.QueryTable(new(models.SystemTenantUser)).
|
||||
@@ -61,7 +58,6 @@ func (c *BackendTenantApplyController) reviewerName(claims *jwtutil.Claims) stri
|
||||
return claims.Username
|
||||
}
|
||||
|
||||
// List GET /backend/tenantApplies?page=1&pageSize=20&status=
|
||||
func (c *BackendTenantApplyController) List() {
|
||||
claims, err := c.backendClaims()
|
||||
if err != nil {
|
||||
@@ -97,7 +93,6 @@ func (c *BackendTenantApplyController) List() {
|
||||
return
|
||||
}
|
||||
|
||||
// 补充申请人展示信息(昵称 / 手机号)
|
||||
type applyDTO struct {
|
||||
models.AuthTenantApply
|
||||
IdentityNickname string `json:"identity_nickname"`
|
||||
@@ -125,7 +120,6 @@ func (c *BackendTenantApplyController) List() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Approve POST /backend/tenantApplies/approve/:id
|
||||
func (c *BackendTenantApplyController) Approve() {
|
||||
claims, err := c.backendClaims()
|
||||
if err != nil {
|
||||
@@ -147,7 +141,6 @@ func (c *BackendTenantApplyController) Approve() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Reject POST /backend/tenantApplies/reject/:id { reason }
|
||||
func (c *BackendTenantApplyController) Reject() {
|
||||
claims, err := c.backendClaims()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user