FrontInterfaceCenter/api/apierr/err.proto

29 lines
605 B
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package apierr;
import "errors/errors.proto";
option go_package = "./apierr;apierr";
enum Err {
// 设置缺省错误码,正常情况,所有业务错误都默认用此状态码
option (errors.default_code) = 560;
// 系统panic错误
SYSTEM_PANIC = 0 [(errors.code) = 599];
// 未登录401不能滥用客户端会拉起登录
NOT_LOGIN = 1 [(errors.code) = 401];
// 统一未找到数据的提示,无特殊业务处理的 reason
DB_NOT_FOUND = 2;
// 参数错误
PARAM = 3 [(errors.code) = 400];
// 不允许
NOT_ALLOW = 4;
// 异常
EXCEPTION = 5;
}