LikeStatus.java 660 字节
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 LikeStatus {
    /**
     * 未处理
     */
    UN_PROCESSED(0, "未处理"),
    /**
     * 已经点过赞
     */
    HAVE_ALREADY_LIKED(1, "已经点过赞"),
    /**
     * 点赞已满
     */
    LIKE_IS_FULL(2, "点赞已满"),
    /**
     * 取消点赞
     */
    CANCEL_LIKES(3, "取消点赞"),
    /**
     * 点赞成功
     */
    LIKE_SUCCESSFUL(9, "点赞成功");

    private Integer code;
    private String name;

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