更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

+5 -14
View File
@@ -2,27 +2,18 @@ package models
import "time"
// 企业申请类型 / 状态
const (
TenantApplyTypeJoin = 1 // 加入企业(绑定企业,企业管理员审批)
TenantApplyTypeCreate = 2 // 创建企业(平台审批)
TenantApplyTypeJoin = 1
TenantApplyTypeCreate = 2
TenantApplyStatusPending = 0 // 待审核
TenantApplyStatusPassed = 1 // 已通过
TenantApplyStatusReject = 2 // 已驳回
TenantApplyStatusPending = 0
TenantApplyStatusPassed = 1
TenantApplyStatusReject = 2
)
// AuthTenantApply 注册企业绑定/创建申请:yz_auth_tenant_apply
//
// 统一认证注册第二步产生:
// - type=join:绑定企业申请,由目标企业的管理员在 backend「加入申请」页审批,
// 通过后建立身份-企业绑定(默认「租户用户」角色);
// - type=create:创建企业申请(含营业执照),由平台在 platform「企业创建审核」页审批,
// 通过后自动创建租户并把申请人绑定为租户管理员。
type AuthTenantApply struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
IdentityID uint64 `orm:"column(identity_id)" json:"identity_id"`
// 小程序「挂靠企业」填写的资料:姓名 / 部门 / 职位 / 微信手机号(只读,后端取身份手机号)
ApplicantName string `orm:"column(applicant_name);size(64);default('')" json:"applicant_name"`
DepartmentID uint64 `orm:"column(department_id);default(0)" json:"department_id"`
DepartmentName string `orm:"column(department_name);size(128);default('')" json:"department_name"`