29 lines
615 B
Protocol Buffer
29 lines
615 B
Protocol Buffer
syntax = "proto3";
|
|
package mixservice.mixv1;
|
|
import "validate/validate.proto";
|
|
import "mix/mixv1/common.proto";
|
|
option go_package = "./mix/mixv1;mixv1";
|
|
|
|
// 权益链接领取服务
|
|
service DrawUrl {
|
|
// 领取链接
|
|
rpc Draw (DrawUrlTakeReq) returns (DrawUrlTakeResp) {}
|
|
}
|
|
|
|
message DrawUrlTakeReq {
|
|
// 领取类型
|
|
int32 type = 2 [(validate.rules).int32.gt = 0];
|
|
// 验证码类型
|
|
SmsValidCaptchaReq valid_captcha = 3;
|
|
}
|
|
|
|
message DrawUrlTakeResp {
|
|
// 领取ID
|
|
int32 id = 1;
|
|
// 领取类型
|
|
int32 type = 2;
|
|
// 权益链接
|
|
string url = 3;
|
|
// 是否已经领取过了
|
|
bool is_drawn = 4;
|
|
} |