package com.xunhong.erp.turbo.api.user.dto.cmd;

import com.xunhong.erp.turbo.base.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@Schema(title = "用户更新命令")
@EqualsAndHashCode(callSuper = true)
public class UserCreateCmd extends Command {

	@Schema(title = "会员名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String name;

	@Schema(title = "会员昵称")
	private String nickname;

	@Schema(title = "头像")
	private String avatar;

	@Schema(title = "会员手机号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String phone;

	@Schema(title = "是否注册", hidden = true)
	private Boolean register;

	@Schema(title = "会员生日")
	private String birthday;

	@Schema(title = "会员性别")
	private Integer gender;

	@Schema(title = "会员卡号生成方式：1 系统生成 2 自定义")
	private Integer cardType;

	@Schema(title = "备注")
	private String remark;

	@Schema(title = "客户标签")
	private List<Long> labelId;
}
