38 lines
821 B
Protocol Buffer
38 lines
821 B
Protocol Buffer
syntax = "proto3";
|
|
package mixservice.mixv1;
|
|
import "validate/validate.proto";
|
|
option go_package = "./mix/mixv1;mixv1";
|
|
|
|
// 空请求或返回
|
|
message Empty {
|
|
}
|
|
|
|
// 空请求
|
|
message ReqEmpty {
|
|
}
|
|
|
|
// 空返回
|
|
message RespEmpty {
|
|
}
|
|
|
|
|
|
// ReqPage 分页请求参数
|
|
message ReqPage {
|
|
int32 num = 1 [(validate.rules).int32 = {gte:1}]; //页码
|
|
int32 size = 2 [(validate.rules).int32 = {gte:1, lte: 1000}]; //每页数量
|
|
}
|
|
// ReqPage 分页请求参数
|
|
message RespPage {
|
|
int32 num = 1; //页码
|
|
int32 size = 2; //每页数量
|
|
int32 total = 3; //总数
|
|
}
|
|
|
|
message SmsValidCaptchaReq {
|
|
// 业务类型编码
|
|
string type_code = 1 [(validate.rules).string.min_len = 1];
|
|
// 手机号
|
|
string mobile = 2 [(validate.rules).string.len = 11];
|
|
// 验证码
|
|
string captcha = 3 [(validate.rules).string.len = 6];
|
|
} |