Android -- OkHttp的简单使用和封装

时间:2025-01-25 12:52:35

package ;

import ;

/**

 * Created by wangjitao on 2016/12/21 0021.

 * E-Mail:543441727@

 * 用户菜单权限按钮

 */

public class UserMenu {

    /**

     * last_login_time : 2016-12-21 15:40:28

     * member_id : 1

     * modules : []

     * phone : 18900532225

     * real_name : 超级管理员

     * role : {"role_id":1,"role_name":"超级管理员"}

     * username : superadmin

     */

    private String last_login_time;

    private int member_id;

    private String phone;

    private String real_name;

    /**

     * role_id : 1

     * role_name : 超级管理员

     */

    private RoleBean role;

    private String username;

    /**

     * module_code : 100

     * module_id : 1

     * module_name : 首页

     * pid : 0

     * type : 1

     * value : P_index

     */

    private List<ModulesBean> modules;

    public String getLast_login_time() {

        return last_login_time;

    }

    public void setLast_login_time(String last_login_time) {

        this.last_login_time = last_login_time;

    }

    public int getMember_id() {

        return member_id;

    }

    public void setMember_id(int member_id) {

        this.member_id = member_id;

    }

    public String getPhone() {

        return phone;

    }

    public void setPhone(String phone) {

        this.phone = phone;

    }

    public String getReal_name() {

        return real_name;

    }

    public void setReal_name(String real_name) {

        this.real_name = real_name;

    }

    public RoleBean getRole() {

        return role;

    }

    public void setRole(RoleBean role) {

        this.role = role;

    }

    public String getUsername() {

        return username;

    }

    public void setUsername(String username) {

        this.username = username;

    }

    public List<ModulesBean> getModules() {

        return modules;

    }

    public void setModules(List<ModulesBean> modules) {

        this.modules = modules;

    }

    public static class RoleBean {

        private int role_id;

        private String role_name;

        public int getRole_id() {

            return role_id;

        }

        public void setRole_id(int role_id) {

            this.role_id = role_id;

        }

        public String getRole_name() {

            return role_name;

        }

        public void setRole_name(String role_name) {

            this.role_name = role_name;

        }

    }

    public static class ModulesBean {

        private String module_code;

        private int module_id;

        private String module_name;

        private int pid;

        private int type;

        private String value;

        public String getModule_code() {

            return module_code;

        }

        public void setModule_code(String module_code) {

            this.module_code = module_code;

        }

        public int getModule_id() {

            return module_id;

        }

        public void setModule_id(int module_id) {

            this.module_id = module_id;

        }

        public String getModule_name() {

            return module_name;

        }

        public void setModule_name(String module_name) {

            this.module_name = module_name;

        }

        public int getPid() {

            return pid;

        }

        public void setPid(int pid) {

            this.pid = pid;

        }

        public int getType() {

            return type;

        }

        public void setType(int type) {

            this.type = type;

        }

        public String getValue() {

            return value;

        }

        public void setValue(String value) {

            this.value = value;

        }

    }

}