作者 yangfu

用户禁用

... ... @@ -49,6 +49,9 @@ func (l *MiniUserApplyJoinCompanyLogic) MiniUserApplyJoinCompany(req *types.Mini
return nil, xerr.NewErrMsgErr("申请失败", err)
}
if user != nil {
if user.Enable != domain.UserEnable {
return nil, xerr.NewErrMsgErr("账号不可用", err)
}
token, err = generateToken(l.svcCtx, user)
if err != nil {
return nil, xerr.NewErrMsgErr("登录失败", err)
... ...
... ... @@ -73,4 +73,20 @@ CREATE INDEX IF NOT EXISTS idx_message_system_company_id ON "public"."message_sy
-- 业务消息表
-- (公司ID)索引
CREATE INDEX IF NOT EXISTS idx_message_business_company_id ON "public"."message_business" USING btree(company_id);
\ No newline at end of file
CREATE INDEX IF NOT EXISTS idx_message_business_company_id ON "public"."message_business" USING btree(company_id);
-- 迁移准备
-- 修改起始的id序号
select setval('user_id_seq',10000);
select setval('department_id_seq',10000);
select setval('role_id_seq',10000);
select setval('company_id_seq',10000);
select setval('article_id_seq',100000);
select setval('article_and_tag_id_seq',100000);
select setval('article_backup_id_seq',100000);
select setval('article_comment_id_seq',100000);
select setval('article_draft_id_seq',100000);
select setval('article_section_id_seq',100000);
select setval('article_tag_id_seq',100000);
\ No newline at end of file
... ...