package pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class UserInfo {
    private int id;
    private String name;
    private String pass;

    public String toJSON(){
        String json = "{";
        json += "\"id\":" + id + ",";
        json += "\"name\":\"" + name + "\",";
        json += "\"pass\":\"" + pass;
        json += "}";
        return json;
    }
}