package com.softwarebr.nunu.json.admin.user;

import com.alibaba.fastjson.annotation.JSONField;
import com.brframework.commoncms.annatotion.column.HideColumn;
import com.brframework.commoncms.annatotion.column.ImageColumn;
import com.brframework.commoncms.annatotion.column.SelectColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户
 * @Author lilin
 * @Date 2020-02-17 14:07:07
 */

@Data
@ApiModel
public class MemberResult {

	@ApiModelProperty(value = "id", required = true, example = "1")
	@HideColumn
	private Long id;

	@ApiModelProperty(value = "账号", required = true, example = "")
	private String phone;

	@ApiModelProperty(value = "昵称", required = true, example = "")
	private String nickname;

	@ApiModelProperty(value = "头像", required = true, example = "")
	@ImageColumn
	private String headImgUri;

	@ApiModelProperty(value = "身份", required = true, example = "")
	@SelectColumn(options = {"1,用户", "2,企业"})
	private Integer identityType;

	@ApiModelProperty(value = "姓名", required = true, example = "")
	private String username;

	@ApiModelProperty(value = "企业名称", required = true, example = "")
	private String companyName;

	@ApiModelProperty(value = "账号状态", required = true, example = "")
	@SelectColumn(options = {"0,禁用", "1,正常"})
	private Integer status;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "注册时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;

}