package com.gree.mall.manager.enums.workorder;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.common.collect.Lists;
import com.gree.mall.manager.enums.base.BaseEnum;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public enum AppraiseSourceEnum implements BaseEnum, IEnum<Integer> {

    A("1","客户端"),
    B("2","商家");

    @JsonValue
    @EnumValue
    private final String key;
    private final String remark;


    @Override
    public Integer getValue() {
        return getIntKey();
    }
}
