v0.1.10
proto-jpoint
jpoint/jpoint.proto
Account
| Field | Type | Label | Description |
|---|---|---|---|
| phone_id | string | ||
| object_id | string | ||
| uid | int64 | ||
| avatar | string | ||
| display_name | string | ||
| group_name | string |
AccountListReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string |
AccountListRes
| Field | Type | Label | Description |
|---|---|---|---|
| accounts | Account | repeated |
BalanceLog
| Field | Type | Label | Description |
|---|---|---|---|
| platform | string | ||
| type | BalanceLogType | ||
| amount | int64 | jpoint | |
| from_object_id | string | ||
| from_displayname | string | ||
| log_at | google.protobuf.Timestamp | ||
| to_object_id | string | others | |
| to_displayname | string | ||
| product_name | string | ||
| note | string | ||
| transfer_detail | TransferDetail | transfer |
type 不是 BLT_TRANSFER 時 為空 |
BalanceLogReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| page | int64 | ||
| limit | int64 | ||
| filter | BalanceLogFilter |
BalanceLogRes
| Field | Type | Label | Description |
|---|---|---|---|
| logs | BalanceLog | repeated |
Banner
| Field | Type | Label | Description |
|---|---|---|---|
| name | string | ||
| link | string | ||
| banner_url | string |
BannerReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string |
BannerRes
| Field | Type | Label | Description |
|---|---|---|---|
| banners | Banner | repeated |
EnterRedeemCodeReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| code | string | ||
| recaptcha | string | ||
| recaptcha_type | RecaptchaType | ||
| secure_code | string |
EnterRedeemCodeRes
| Field | Type | Label | Description |
|---|---|---|---|
| jpoint_amount | int64 | ||
| err | EnterRedeemCodeError | ||
| wrong_redeem_count | int64 |
ExchangeProductReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| product_id | int64 | ||
| direct_use | bool | ||
| to_object_id | string | 必填 當 direct_use True |
ExchangeProductRes
GetBalanceReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string |
GetBalanceRes
| Field | Type | Label | Description |
|---|---|---|---|
| balance | double | ||
| last_tradecode_at | google.protobuf.Timestamp | ||
| bonus_expired_amount | double | ||
| bonus_expired_at | google.protobuf.Timestamp |
GetValidatedDonationTokenReq
| Field | Type | Label | Description |
|---|---|---|---|
| trade_code | string | ||
| donation_token | string |
GetValidatedDonationTokenRes
| Field | Type | Label | Description |
|---|---|---|---|
| validated_donation_token | string |
GetValidatedDonationTokenRes.Error
JpointPackage
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| name | string | ||
| price | int64 | ||
| jpoint_amount | int64 | ||
| icon_img | string | ||
| description | string | ||
| tag | string |
Level
| Field | Type | Label | Description |
|---|---|---|---|
| level_name | string | ||
| level_icon | string | ||
| bonus_jpoint_per_twd | int64 | ||
| min_year_consumption | int64 |
LevelListReq
LevelListRes
| Field | Type | Label | Description |
|---|---|---|---|
| levels | Level | repeated |
MyLevelReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| platform | string | optional, for platform_bonus_rate |
MyLevelRes
| Field | Type | Label | Description |
|---|---|---|---|
| level | Level | ||
| next_level | Level | ||
| platform_bonus_rate | double | ||
| year_consumption | int64 |
OrderLog
| Field | Type | Label | Description |
|---|---|---|---|
| order_id | string | ||
| user_displayname | string | ||
| package_name | string | ||
| price | int64 | ||
| jpoint_amount | int64 | ||
| status | OrderStatus | ||
| created_at | google.protobuf.Timestamp | ||
| type | BalanceLogType | ||
| from_displayname | string | ||
| platform | string |
OrderLogReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| page | int64 | ||
| limit | int64 |
OrderLogRes
| Field | Type | Label | Description |
|---|---|---|---|
| logs | OrderLog | repeated |
Platform
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| name | string | ||
| icon | string | ||
| link | string |
Product
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| name | string | ||
| platform | Platform | ||
| price | int64 | ||
| description | string | ||
| img_url | string |
ProductListReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string |
ProductListRes
| Field | Type | Label | Description |
|---|---|---|---|
| products | Product | repeated |
ResetTradeCodeReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| verify_code | string | ||
| new_trade_code | string | ||
| repeat_new_trade_code | string |
ResetTradeCodeRes
SendVerifyCodeReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string |
SendVerifyCodeRes
| Field | Type | Label | Description |
|---|---|---|---|
| is_send_sms | bool |
SetTradeCodeReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| old_trade_code | string | ||
| new_trade_code | string | ||
| repeat_new_trade_code | string |
SetTradeCodeRes
ShowSnReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| sn_id | int64 |
ShowSnRes
| Field | Type | Label | Description |
|---|---|---|---|
| sn_id | int64 | ||
| serial_number | string | ||
| exchanged_at | google.protobuf.Timestamp |
TopUpPackagesReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string |
TopUpPackagesRes
| Field | Type | Label | Description |
|---|---|---|---|
| packages | JpointPackage | repeated |
TopUpReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| package_id | int64 | ||
| redirect_url | string |
TopUpRes
| Field | Type | Label | Description |
|---|---|---|---|
| transaction_token | string | ||
| transc_id | string |
TradeImmediatelyReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| trade_id | int64 |
TradeImmediatelyRes
TradeReceiveReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| trade_id | int64 |
TradeReceiveRes
TradeReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| to_object_id | string | ||
| transfer_amount | int64 | ||
| note | string | ||
| trade_code | string | ||
| platform | string | ||
| trade_at | google.protobuf.Timestamp |
TradeRes
| Field | Type | Label | Description |
|---|---|---|---|
| trade_id | int64 |
TransferDetail
| Field | Type | Label | Description |
|---|---|---|---|
| status | TransferStatus | ||
| trade_at | google.protobuf.Timestamp | 預約交易時間 | |
| completed_at | google.protobuf.Timestamp | 成功時間(接收) | |
| canceled_at | google.protobuf.Timestamp | 取消時間(退還) |
TransferReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| to_object_id | string | ||
| transfer_amount | int64 | ||
| note | string | ||
| trade_code | string | ||
| platform | string |
TransferRes
UseSnReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| sn_id | int64 |
UseSnRes
ValidPhoneReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| phone | string |
ValidPhoneRes
ValidTradeCodeReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| trade_code | string |
ValidTradeCodeRes
| Field | Type | Label | Description |
|---|---|---|---|
| valid | bool | ||
| is_lock | bool |
ValidVerifyCodeReq
| Field | Type | Label | Description |
|---|---|---|---|
| access_token | string | ||
| verify_code | string |
ValidVerifyCodeRes
| Field | Type | Label | Description |
|---|---|---|---|
| success | bool | ||
| failed_times | int64 | ||
| can_resend | bool |
BalanceLogFilter
| Name | Number | Description |
|---|---|---|
| BLRF_ALL | 0 | |
| BLRF_INCREASE | 1 | |
| BLRF_DECREASE | 2 |
BalanceLogType
| Name | Number | Description |
|---|---|---|
| BLT_NONE | 0 | |
| BLT_EXCHANGE_PRODUCT | 1 | 扣點: 兌換 |
| BLT_TRANSFER | 2 | 扣點: 轉帳 |
| BLT_BONUS_CANCELED | 21 | 扣點: 取消回饋 |
| BLT_DEDUCT | 22 | 扣點: 折抵 |
| BLT_PLATFORM_ADD_CANCELED | 23 | 扣點: 取消平台增加點數 |
| BLT_ORDER_CANCELED | 24 | 扣點: 訂單否認交易,收回 jpoint |
| BLT_ORDER | 3 | 加點: 儲值成功 |
| BLT_REDEEM_CODE | 4 | 加點: 輸入序號 |
| BLT_TRANSFER_RECEIVE | 5 | 加點: 交易獲得 |
| BLT_TRANSFER_CANCELED | 6 | 加點: 交易取消 |
| BLT_BONUS | 7 | 加點: 回饋 |
| BLT_DEDUCT_CANCELED | 8 | 加點: 取消折抵 |
| BLT_PLATFORM_ADD | 9 | 加點: 平台增加點數 |
EnterRedeemCodeError
| Name | Number | Description |
|---|---|---|
| ERC_SUCCESS | 0 | 成功 |
| ERC_INVALIDCODE | 1 | 輸入失敗 |
| ERC_TIMELIMITED | 2 | 限制輸入 |
| ERC_BLOCKED | 3 | 錯誤次數太多被阻擋 |
| ERC_TAKEN | 4 | 序號已被兌換 |
GetValidatedDonationTokenRes.Error.Code
| Name | Number | Description |
|---|---|---|
| None | 0 | |
| TradeCodeErr | 1001 |
OrderStatus
| Name | Number | Description |
|---|---|---|
| OS_CREATED | 0 | 訂單尚未付款 |
| OS_DONE | 1 | 訂單完成 |
| OS_FAILED | 2 | 訂單失敗 |
| OS_REFUND | 3 | 訂單退款 |
RecaptchaType
| Name | Number | Description |
|---|---|---|
| RT_V2 | 0 | |
| RT_V2_INVISIBLE | 1 | |
| RT_V2_ANDROID | 2 | |
| RT_V2_IOS_ENTERPRISE | 3 | |
| RT_V2_ANDROID_ENTERPRISE | 4 |
TransferResultEvent
| Name | Number | Description |
|---|---|---|
| TRE_Created | 0 | 建立交易請求 |
| TRE_Received | 1 | 接受交易 |
| TRE_Canceled | 2 | 取消交易 |
| TRE_Immediately | 3 | 立即交易 |
| TRE_Freeze | 4 | 此交易被凍結 |
| TRE_Unfreeze | 5 | 此交易被解除凍結 |
| TRE_AdminCanceled | 6 | 管理者取消 |
| TRE_AdminCanceledFrozen | 7 | 管理者取消凍結 |
| TRE_NearOverdue | 8 | 交易已接近逾期時間 |
| TRE_ReturnToReceivableStatus | 9 | 從預約狀態後轉換為可立刻交易 |
TransferStatus
| Name | Number | Description |
|---|---|---|
| TS_IMMEDIATELY | 0 | 立即交易 |
| TS_SCHEDULED | 1 | 預約轉帳 |
| TS_COMPLETED | 2 | 訂單完成 |
| TS_CANCELED | 3 | 交易取消(退還) |
| TS_FREEZE | 4 | 交易凍結 |
JPointService
jpoint & im 前端
jpointadmin/jpointadmin.proto
Banner
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| name | string | ||
| link | string | ||
| banner_url | string | ||
| start_at | google.protobuf.Timestamp | ||
| end_at | google.protobuf.Timestamp |
BannerAddReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| banner | Banner |
BannerAddRes
BannerDeleteReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| id | int64 |
BannerDeleteRes
BannerEditReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| banner | Banner |
BannerEditRes
BannerListReq
| Field | Type | Label | Description |
|---|---|---|---|
| page | int64 | ||
| limit | int64 | ||
| admin_token | string |
BannerListRes
| Field | Type | Label | Description |
|---|---|---|---|
| banners | Banner | repeated | |
| count | int64 |
ImportProductSnReq
| Field | Type | Label | Description |
|---|---|---|---|
| file | bytes | ||
| product_id | int64 | ||
| admin_token | string |
ImportProductSnRes
Member
| Field | Type | Label | Description |
|---|---|---|---|
| phone_id | string | ||
| jpoint | int64 | ||
| last_tradecode_at | google.protobuf.Timestamp | ||
| level_id | int64 | ||
| year_consumption | int64 | ||
| total_consumption | int64 | ||
| bonus | int64 | ||
| bonus_expired_at | google.protobuf.Timestamp | ||
| is_blocked | bool |
MemberBlockReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| phone_id | string | ||
| block | bool |
MemberBlockRes
MemberListReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| page | int64 | ||
| limit | int64 | ||
| phone_id | string | optional |
MemberListRes
| Field | Type | Label | Description |
|---|---|---|---|
| members | Member | repeated | |
| count | int64 |
Order
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| phone_id | string | ||
| object_displayname | string | ||
| transc_id | string | ||
| package_name | string | ||
| price | int64 | ||
| jpoint_amount | int64 | ||
| status | OrderStatus | ||
| created_at | google.protobuf.Timestamp |
OrderListReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| page | int64 | ||
| limit | int64 | ||
| start_at | google.protobuf.Timestamp | ||
| end_at | google.protobuf.Timestamp | ||
| phone_id | string | optional | |
| order_status | OrderStatus | ||
| transc_id | string | optional |
OrderListRes
| Field | Type | Label | Description |
|---|---|---|---|
| orders | Order | repeated | |
| count | int64 | ||
| success_money | int64 | 成功訂單金額 |
OrderRefundReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| order_id | int64 |
OrderRefundRes
Platform
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| name | string | ||
| icon | string | ||
| link | string | ||
| endpoint | string | ||
| priority | int64 | ||
| bonus_rate | double | ||
| displayname | string |
PlatformEditReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| platform_id | int64 | ||
| bonus_rate | double |
PlatformEditRes
PlatformListReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string |
PlatformListRes
| Field | Type | Label | Description |
|---|---|---|---|
| platforms | Platform | repeated |
PlatformOrder
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| platform_id | int64 | ||
| phone_id | string | ||
| type | PlatformOrderType | ||
| consumption_amount | int64 | ||
| jpoint_amount | int64 | ||
| status | PlatformOrderStatus | ||
| created_at | google.protobuf.Timestamp | ||
| updated_at | google.protobuf.Timestamp | ||
| note | string |
PlatformOrderCancelReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| platform_order_id | int64 |
PlatformOrderCancelRes
PlatformOrderListReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| page | int64 | ||
| limit | int64 | ||
| platform_id | int64 | optional | |
| phone_id | string | optional | |
| type | PlatformOrderType | optional | |
| start_at | google.protobuf.Timestamp | ||
| end_at | google.protobuf.Timestamp |
PlatformOrderListRes
| Field | Type | Label | Description |
|---|---|---|---|
| platform_orders | PlatformOrder | repeated | |
| count | int64 |
PlatformOrderReport
| Field | Type | Label | Description |
|---|---|---|---|
| platform_id | int64 | ||
| date | string | ||
| type | PlatformOrderType | ||
| total_increase | int64 | ||
| total_decrease | int64 |
PlatformOrderReportReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| start_at | google.protobuf.Timestamp | ||
| end_at | google.protobuf.Timestamp | ||
| platform_id | int64 | optional | |
| type | PlatformOrderType | optional |
PlatformOrderReportRes
| Field | Type | Label | Description |
|---|---|---|---|
| platform_order_reports | PlatformOrderReport | repeated |
Product
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| platform_id | int64 | ||
| platform_name | string | ||
| name | string | ||
| description | string | ||
| price | int64 | ||
| start_at | google.protobuf.Timestamp | ||
| end_at | google.protobuf.Timestamp | ||
| show_serial_number | bool | ||
| img_url | string | ||
| unused_count | int64 |
ProductAddReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| product | Product |
ProductAddRes
ProductDeleteReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| id | int64 |
ProductDeleteRes
ProductEditReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| product | Product |
ProductEditRes
ProductListReq
| Field | Type | Label | Description |
|---|---|---|---|
| page | int64 | ||
| limit | int64 | ||
| platform_id | int64 | ||
| sale_at | google.protobuf.Timestamp | ||
| admin_token | string |
ProductListRes
| Field | Type | Label | Description |
|---|---|---|---|
| products | Product | repeated | |
| count | int64 |
RedeemBatch
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| amount | int64 | ||
| jpoint_amount | int64 | ||
| batch_number | string | ||
| platform_id | int64 | ||
| is_bonus | bool | ||
| created_at | google.protobuf.Timestamp | ||
| admin_account | string | ||
| unused_count | int64 |
RedeemBatchError
RedeemBatchListReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| page | int64 | ||
| limit | int64 | ||
| batch_number | string | optional | |
| platform_id | int64 | optional |
RedeemBatchListRes
| Field | Type | Label | Description |
|---|---|---|---|
| redeem_batches | RedeemBatch | repeated | |
| count | int64 |
RedeemCode
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| phone_id | string | ||
| object_id | string | ||
| code | string | ||
| jpoint_amount | int64 | ||
| batch_id | int64 | ||
| status | int64 | ||
| created_at | google.protobuf.Timestamp | ||
| redeem_at | google.protobuf.Timestamp | ||
| ip | string | ||
| platform_id | int64 | ||
| is_bonus | bool |
RedeemCodeGenReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| amount | int64 | ||
| jpoint_amount | int64 | ||
| batch_number | string | ||
| platform_id | int64 | ||
| is_bonus | bool |
RedeemCodeGenRes
RedeemCodeListReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| page | int64 | ||
| limit | int64 | ||
| code | string | optional | |
| batch_id | int64 | optional | |
| platform_id | int64 | optional | |
| phone_id | string | optional | |
| redeem_code_status | RedeemCodeStatus | optional | |
| sort_by_redeem_at | SortByRedeemAt | optional |
RedeemCodeListRes
| Field | Type | Label | Description |
|---|---|---|---|
| redeem_codes | RedeemCode | repeated | |
| count | int64 |
SendRedeemBatchCodesByEmailReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| batch_number | string | ||
| email_recipient | string |
SendRedeemBatchCodesByEmailRes
SerialNumber
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| product_id | int64 | ||
| code | string | ||
| phone_id | string | ||
| object_id | string | ||
| ip | string | ||
| created_at | google.protobuf.Timestamp | ||
| exchanged_at | google.protobuf.Timestamp | ||
| last_viewed_at | google.protobuf.Timestamp | ||
| product_name | string | ||
| is_product_deleted | bool |
SerialNumberListReq
| Field | Type | Label | Description |
|---|---|---|---|
| page | int64 | ||
| limit | int64 | ||
| admin_token | string | ||
| product_id | int64 | optional | |
| exchange_user | string | optional | |
| ip | string | optional | |
| code | string | optional |
SerialNumberListRes
| Field | Type | Label | Description |
|---|---|---|---|
| serialNumbers | SerialNumber | repeated | |
| count | int64 |
ShowLogDetailReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| log_type | string | ||
| log_id | int64 |
ShowLogDetailRes
| Field | Type | Label | Description |
|---|---|---|---|
| ip | string | ||
| note | string | ||
| to_uid | string | ||
| from_uid | string | ||
| product_name | string | ||
| to_object_id | string | ||
| from_object_id | string | ||
| to_displayname | string | ||
| from_displayname | string |
Transfer
| Field | Type | Label | Description |
|---|---|---|---|
| id | int64 | ||
| from_phone_id | string | ||
| to_phone_id | string | ||
| amount | int64 | ||
| platform | string | ||
| ip | string | ||
| created_at | google.protobuf.Timestamp | ||
| status | TransferStatus | ||
| trade_at | google.protobuf.Timestamp | ||
| completed_at | google.protobuf.Timestamp | ||
| canceled_at | google.protobuf.Timestamp | ||
| fee | int64 |
TransferCancelReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| transfer_id | int64 |
TransferCancelRes
TransferFreezeReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| transfer_id | int64 | ||
| is_freeze | bool |
TransferFreezeRes
TransferListReq
| Field | Type | Label | Description |
|---|---|---|---|
| admin_token | string | ||
| page | int64 | ||
| limit | int64 | ||
| phone_id | string | optional | |
| start_at | google.protobuf.Timestamp | optional | |
| end_at | google.protobuf.Timestamp | optional |
TransferListRes
| Field | Type | Label | Description |
|---|---|---|---|
| transfers | Transfer | repeated | |
| count | int64 |
OrderStatus
| Name | Number | Description |
|---|---|---|
| OS_NOTSET | 0 | |
| OS_CREATED | 1 | 訂單尚未付款 |
| OS_DONE | 2 | 訂單完成 |
| OS_FAILED | 3 | 訂單失敗 |
| OS_REFUND | 4 | 訂單退款 |
PlatformOrderStatus
| Name | Number | Description |
|---|---|---|
| POS_NOTSET | 0 | |
| POS_SUCCESS | 1 | |
| POS_CANCELED | 2 |
PlatformOrderType
| Name | Number | Description |
|---|---|---|
| POT_NOTSET | 0 | |
| POT_ACCUMULATE | 1 | |
| POT_DEDUCT | 2 | |
| POT_ADD | 3 | |
| POT_PURCHASE_REDEEM | 4 | |
| POT_JPOINT_DISCOUNT | 5 |
RedeemBatchError.Code
| Name | Number | Description |
|---|---|---|
| None | 0 | |
| SendingBatchCodesByEmailFailed | 1001 |
RedeemCodeStatus
| Name | Number | Description |
|---|---|---|
| RCS_NOTSET | 0 | |
| RCS_USED | 1 | |
| RCS_NOT_USED | 2 |
SortByRedeemAt
| Name | Number | Description |
|---|---|---|
| SBRA_NOTSET | 0 | |
| SBRA_ASCENDING | 1 | |
| SBRA_DESCENDING | 2 |
TransferStatus
| Name | Number | Description |
|---|---|---|
| TS_IMMEDIATELY | 0 | 立即交易 |
| TS_SCHEDULED | 1 | 預約轉帳 |
| TS_COMPLETED | 2 | 訂單完成 |
| TS_CANCELED | 3 | 交易取消(退還) |
| TS_FREEZE | 4 | 交易凍結 |
JPointAdminService
jpointapi/jpointapi.proto
AccumulatePointsParam
param info
| Field | Type | Label | Description |
|---|---|---|---|
| object_id | string | ||
| amount_of_consumption | int64 | 消費額度 | |
| note | string |
AccumulatePointsRes
| Field | Type | Label | Description |
|---|---|---|---|
| accumulate_id | int64 | ||
| bonus_amount | int64 |
AddPointsParam
| Field | Type | Label | Description |
|---|---|---|---|
| object_id | string | ||
| amount | int64 | ||
| is_bonus | bool | ||
| note | string |
AddPointsRes
| Field | Type | Label | Description |
|---|---|---|---|
| add_id | int64 |
CancelAccumulateParam
| Field | Type | Label | Description |
|---|---|---|---|
| accumulate_id | int64 |
CancelAccumulateRes
CancelAddParam
| Field | Type | Label | Description |
|---|---|---|---|
| add_id | int64 |
CancelAddRes
CancelDonationReq
| Field | Type | Label | Description |
|---|---|---|---|
| validated_donation_token | string |
CancelDonationRes
CancelUseParam
| Field | Type | Label | Description |
|---|---|---|---|
| use_id | int64 |
CancelUseRes
CreateDonationTokenReq
| Field | Type | Label | Description |
|---|---|---|---|
| product_log_id | string | ||
| product_tag | string | ||
| product_fee | int64 | ||
| donator_object_id | string | ||
| donatee_object_id | string | ||
| amount | int64 |
CreateDonationTokenRes
| Field | Type | Label | Description |
|---|---|---|---|
| donation_token | string |
EncryptedReq
| Field | Type | Label | Description |
|---|---|---|---|
| platform | string | ||
| encryption_param | string |
FinishDonationReq
| Field | Type | Label | Description |
|---|---|---|---|
| validated_donation_token | string |
FinishDonationRes
UsePointsParam
| Field | Type | Label | Description |
|---|---|---|---|
| object_id | string | ||
| use_amount | int64 | ||
| note | string | ||
| use_permanent | bool | 只能使用永久點數 | |
| platform_order_type | jpointadmin.PlatformOrderType | 可選參數 紀錄log type類型 沒帶入預設deduct(向下兼容) |
UsePointsRes
| Field | Type | Label | Description |
|---|---|---|---|
| use_id | int64 |
JPointApiService
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| AccumulatePoints | EncryptedReq | AccumulatePointsRes | 累積用戶點數 |
| CancelAccumulate | EncryptedReq | CancelAccumulateRes | |
| UsePoints | EncryptedReq | UsePointsRes | 使用用戶點數 |
| CancelUse | EncryptedReq | CancelUseRes | |
| AddPoints | EncryptedReq | AddPointsRes | 增加點數 |
| CancelAdd | EncryptedReq | CancelAddRes | |
| CreateDonationToken | CreateDonationTokenReq | CreateDonationTokenRes | 打賞 get token |
| FinishDonation | FinishDonationReq | FinishDonationRes | trade code with token to get validate token |
| CancelDonation | CancelDonationReq | CancelDonationRes |
public/error/detail.proto
TradeCodeErrDetail
| Field | Type | Label | Description |
|---|---|---|---|
| is_lock | bool | ||
| error_count | int64 |
public/googlepb/pubsub.proto
DonaPubsub
| Field | Type | Label | Description |
|---|---|---|---|
| from_object_id | string | ||
| to_object_id | string | ||
| amount | int64 | 打賞金額(已扣除平台抽成) | |
| pub_sub_type | DonaPubSubType |
DonaPubSubType
| Name | Number | Description |
|---|---|---|
| DonaFinish | 0 | 打賞完成 |