👽 重构AuthRequest的实现方式、加入百度授权登录
This commit is contained in:
@@ -2,6 +2,7 @@ package me.zhyd.oauth.model;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import me.zhyd.oauth.request.ResponseStatus;
|
||||
|
||||
/**
|
||||
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
|
||||
@@ -13,7 +14,7 @@ import lombok.Data;
|
||||
@Builder
|
||||
@Data
|
||||
public class AuthResponse<T> {
|
||||
private int code = 200;
|
||||
private String msg;
|
||||
private int code = ResponseStatus.SUCCESS.getCode();
|
||||
private String msg = ResponseStatus.SUCCESS.getMsg();
|
||||
private T data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user