CollectStatus.java 679 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
package com.kwan.springbootkwan.enums;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum CollectStatus {
    /**
     * 未处理
     */
    UN_PROCESSED(0, "未处理"),
    /**
     * 已经收藏过
     */
    HAVE_ALREADY_COLLECT(1, "已经收藏过"),
    /**
     * 收藏已满
     */
    COLLECT_IS_FULL(2, "收藏已满"),
    /**
     * 参数缺失
     */
    MISSING_PARAMETER(3, "参数缺失"),
    /**
     * 收藏成功
     */
    COLLECT_SUCCESSFUL(9, "收藏成功");

    private Integer code;
    private String name;

    CollectStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}