package shop.alien.entity.store.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * C 端用户申请注销接口返回体
 */
@Data
@JsonInclude
@ApiModel(value = "LifeUserCancelAccountResultVo", description = "用户端申请注销返回")
public class LifeUserCancelAccountResultVo {

    /** 0-注销成功 */
    public static final int STATUS_SUCCESS = 0;
    /** 1-验证码错误 */
    public static final int STATUS_SMS_ERROR = 1;
    /** 2-业务校验信息 */
    public static final int STATUS_BUSINESS = 2;

    @ApiModelProperty(value = "状态：0-注销成功，1-验证码错误，2-业务校验信息")
    private Integer status;

    @ApiModelProperty(value = "具体提示：注销成功 / 验证码错误文案 / 业务校验拦截文案")
    private String message;

    public static LifeUserCancelAccountResultVo of(int status, String message) {
        LifeUserCancelAccountResultVo vo = new LifeUserCancelAccountResultVo();
        vo.setStatus(status);
        vo.setMessage(message);
        return vo;
    }
}
