syntax = "proto3"; package api.activity; import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; import "google/protobuf/empty.proto"; option go_package = "git.ikuban.com/server/pw-protobuf/api/activity;activity"; option java_multiple_files = true; option java_package = "api.activity"; service Activity { rpc FindSignInList (google.protobuf.Empty) returns (FindSignInListReply){ option (google.api.http) = { post: "/api/sign/list", body:"*" }; }; rpc Sign (SignRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/sign", body:"*" }; }; rpc GetSignDouble (google.protobuf.Empty) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/sign/again", body:"*" }; }; } message FindSignInListReply{ repeated SignInInfo list = 1; } message SignInInfo{ int64 day = 1;// 签到的日期 bool isSign = 2;// 是否签到 bool isDouble = 3;// 是否获取双倍奖励 int64 credit = 4;// 签到获取的积分 } message SignRequest{ bool isDouble = 1;// 是否获取双倍奖励 }