package com.yonge.cooleshow.biz.dal.wrapper;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.microsvc.toolkit.common.response.paging.QueryInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Optional;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

/**
 * 解绑审核人员设置
 * 2023-08-23 16:33:16
 */
@ApiModel(value = "UnbindAuthUserWrapper对象", description = "解绑审核人员设置查询对象")
public class UnbindAuthUserWrapper {

    @Data
	@Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel(" UnbindAuthUserQuery-解绑审核人员设置")
    public static class UnbindAuthUserQuery implements QueryInfo {
    
    	@ApiModelProperty("当前页")
        private Integer page;
        
        @ApiModelProperty("分页行数")
        private Integer rows;
        
        @ApiModelProperty("关键字匹配")
		private String keyword;
        
        public String getKeyword() {
            return Optional.ofNullable(keyword).filter(StringUtils::isNotBlank).orElse(null);
        }
        
        public String jsonString() {
            return JSON.toJSONString(this);
        }

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

    @Data
	@ApiModel(" UnbindAuthUser-解绑审核人员设置")
    public static class UnbindAuthUser {


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

        @ApiModelProperty("员工ID")
        private Long userId;

        @ApiModelProperty("员工姓名")
        private String userName;

        @ApiModelProperty("员工手机号")
        private String userPhone;

        @ApiModelProperty("省份编码")
        private Integer provinceCode;

        @ApiModelProperty("城市编码")
        private Integer cityCode;

        @ApiModelProperty("地区/街道")
        private Integer regionCode;

        @ApiModelProperty("省份名称")
        private String provinceName;

        @ApiModelProperty("城市名称")
        private String cityName;

        @ApiModelProperty("地区街道名称")
        private String regionName;

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

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

}