syntax = "proto3"; package card; import "third_party/errors/errors.proto"; option go_package = "git.ttmylife.com/zeuszhao/types/card;card"; option java_multiple_files = true; enum CardServiceErrorReason { option (errors.default_code) = 500; UNKNOWN_ERROR = 0; ACCOUNT_PASSWORD_FORMAT = 1; ACCOUNT_NOTFOUND = 2; ACCOUNT_EXIST = 3; ACCOUNT_SYSTEM = 4; ACCOUNT_UPDATE = 5; USER_NOTFOUND = 6; USER_EXIST = 7; USER_SYSTEM = 8; USER_UPDATE = 9; UNAUTHORIZED = 10 [(errors.code) = 401]; FORBIDDEN = 11 [(errors.code) = 403]; ACCOUNT_PASSWORD = 12; THIRD_WX = 13; CARD_NOTFOUND = 14; CARD_EXIST = 15; CARD_SYSTEM = 16; CARD_UPDATE = 17; SHARE_TOKEN_NOTFOUND = 18; SHARE_TOKEN_EXIST = 19; SHARE_TOKEN_SYSTEM = 20; CARD_USER_NOTFOUND = 21; THIRD_ALIYUN = 22; ENDPOINT_OSS_UPLOAD = 23; }