/*
 * Copyright 2022-2025 兮玥(190785909@qq.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.chestnut.member.exception;

import com.chestnut.common.exception.ErrorCode;

public enum MemberErrorCode implements ErrorCode {
	
	/**
	 * 不支持的等级类型：{0}
	 */
	UNSUPPORTED_LEVEL_TYPE,
	
	/**
	 * 等级配置“{0}”已存在
	 */
	LEVEL_CONFIG_EXIST,

	/**
	 * 等级升级经验不能小于上一级
	 */
	LEVEL_CONFIG_EXP,
	
	/**
	 * 已完成签到
	 */
	SIGN_IN_COMPLETED,
	
	/**
	 * 经验配置“{0}”已存在
	 */
	EXP_CONFIG_EXIST,
	
	/**
	 * 不支持的经验值操作项：{0}
	 */
	UNSUPPORTED_EXP_OP,
	
	/**
	 * 用户名冲突
	 */
	USERNAME_CONFLICT,
	
	/**
	 * 手机号冲突
	 */
	PHONE_CONFLICT,
	
	/**
	 * Email冲突
	 */
	EMAIL_CONFLICT,
	
	/**
	 * 用户名/手机号/Email不能全为空。
	 */
	USERNAME_PHONE_EMAIL_ALL_EMPTY,
	
	/**
	 * 会员用户不存在
	 */
	MEMBER_NOT_EXISTS,
	
	/**
	 * 会员用户被封禁
	 */
	MEMBER_DISABLED,

	/**
	 * 已关注过的用户
	 */
	FOLLOWED,

	/**
	 * 已收藏过
	 */
	FAVORITED,

	/**
	 * 未收藏过
	 */
	NOT_FAVORITED,

	/**
	 * 已点赞过
	 */
	LIKED,

	/**
	 * 未点赞过
	 */
	NOT_LIKED,

	/**
	 * 不能关注自己
	 */
	CAN_NOT_FOLLOW_SELF;
	
	@Override
	public String value() {
		return "{ERRCODE.MEMBER." + this.name() + "}";
	}
}
