package com.yonge.cooleshow.admin.io.request;

import com.alibaba.fastjson.JSON;
import com.microsvc.toolkit.common.response.paging.QueryInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 机构员工表
 * 2023-12-19 09:49:04
 */
@ApiModel(value = "TenantStaffVo对象", description = "机构员工表查询视图对象")
public class TenantStaffVo {

    @Data
    @ApiModel(" TenantStaffQuery-机构员工表")
    public static class TenantStaffQuery implements QueryInfo {

        @ApiModelProperty("当前页")
        private Integer page;

        @ApiModelProperty("分页行数")
        private Integer rows;

        public String jsonString() {
            return JSON.toJSONString(this);
        }

        public static TenantStaffQuery from(String json) {
            return JSON.parseObject(json, TenantStaffQuery.class);
        }
    }

    @Data
    @ApiModel(" TenantStaff-机构员工表")
    public static class TenantStaff {

        @ApiModelProperty("主键ID")
        private Long id;

        @ApiModelProperty("机构ID")
        private Long tenantId;

        @ApiModelProperty("昵称")
        private String nickname;

        @ApiModelProperty("性别,0:女，1：男")
        private Integer gender;

        @ApiModelProperty("手机号")
        private String phone;

        @ApiModelProperty("是否是主管理员")
        private Boolean manageAdmin;

        public String jsonString() {
            return JSON.toJSONString(this);
        }

        public static TenantStaff from(String json) {
            return JSON.parseObject(json, TenantStaff.class);
        }
    }

}