提交 687e2cd3 编写于 作者: F fengyw

注册日志

上级 b2cd4532
......@@ -13,6 +13,8 @@ import lombok.Getter;
@AllArgsConstructor
public enum LoginStatusEnum {
REGISTER(2, "注册成功", ""),
//
SUCCESS(1, "登录成功", ""),
//
FAIL(0, "登录失败", "red");
......
......@@ -77,8 +77,8 @@ public class ApiUsersBiz extends BaseBiz {
// 用户注册
user = register(req.getMobile(), req.getMobilePwd());
// 登录日志
loginLog(user.getId(), LoginStatusEnum.SUCCESS, req);
// 日志
loginLog(user.getId(), LoginStatusEnum.REGISTER, req);
UsersLoginResp dto = new UsersLoginResp();
dto.setMobile(user.getMobile());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册