You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudnote_server/src/main/java/com/bupt/note/ResponseData/LoginResponse.java

37 lines
831 B

package com.bupt.note.ResponseData;
import com.alibaba.fastjson.JSON;
import java.io.Serializable;
public class LoginResponse implements Serializable {
private String tokenType;
private String token;
public LoginResponse(String tokenType, String token) {
this.tokenType = tokenType;
this.token = token;
}
public String getTokenType() {
return this.tokenType;
}
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
}
public String toJsonString() {
return JSON.toJSONString(this);
// return "{\"tokenType\": \"" + this.tokenType + "\", \"token\": \"" + this.token + "\"}";
}
}