syntax = "proto3"; package chore; option go_package = "lone-services/rpc/chore"; import "google/api/annotations.proto"; service Chore { rpc Policy(PolicyReq) returns (Response) { option (google.api.http) = { get: "/api/v3/chore/oss/policy" body: "*" }; } rpc Test(TestReq) returns (Response) { option (google.api.http) = { post: "/api/v3/chore/test" body: "*" }; } rpc DecryptMobile(DecryptMobileReq) returns (Response) { option (google.api.http) = { get: "/api/v3/chore/decrypt/mobile" }; } rpc Regions(RegionsReq) returns (Response) { option (google.api.http) = { get: "/api/v3/chore/regions" }; } rpc SendSms(SendSmsReq) returns (Response) { option (google.api.http) = { post: "/api/v3/sms/send" body: "*" }; } rpc AnswerItems(EmptyReq) returns (Response) { option (google.api.http) = { get: "/admin/v3/chore/answer/items" }; } rpc AnswerStatus(StatusReq) returns (Response) { option (google.api.http) = { post: "/admin/v3/chore/answer/status" }; } rpc AnswerInfo(IdReq) returns (Response) { option (google.api.http) = { get: "/admin/v3/chore/answer/info" }; } rpc AnswerCreate(EditReq) returns (Response) { option (google.api.http) = { post: "/admin/v3/chore/answer/create" }; } rpc AnswerEdit(EditReq) returns (Response) { option (google.api.http) = { post: "/admin/v3/chore/answer/edit" }; } rpc SystemEdit(SystemEditReq) returns (Response) { option (google.api.http) = { post: "/admin/v3/chore/system/edit" }; } rpc SystemStatus(StatusReq) returns (Response) { option (google.api.http) = { post: "/admin/v3/chore/system/status" }; } rpc SystemInfo(IdReq) returns (Response) { option (google.api.http) = { get: "/admin/v3/chore/system/info" }; } rpc SystemItems(EmptyReq) returns (Response) { option (google.api.http) = { get: "/admin/v3/chore/system/items" }; } // 按 id 批量查地区名称 rpc RegionsByIds(RegionsByIdsReq) returns (RegionsByIdsData); rpc SendPassword(SendPasswordReq) returns (SendPasswordResp); } message Response { int32 code = 1; string msg = 2; string data = 3; } message EmptyReq { } message IdReq { int64 id = 1; } message StatusReq { int64 id = 1; int32 status = 2; string reason = 3; } message EditReq { int64 id = 1; string question = 2; string explain = 3; string right = 4; string answers = 5; } message SystemEditReq { int32 type = 1; string content = 2; } message PolicyReq { string key = 1; } message TestReq { int32 id = 1; repeated int64 ids = 2; uint32 number = 3; string char = 4; } message DecryptMobileReq { string origin_mobile = 1; } message RegionsReq { int32 parent_id = 1; } message RegionsByIdsReq { repeated int64 ids = 1; } message RegionItem { int64 id = 1; string name = 2; } message RegionsByIdsData { repeated RegionItem items = 1; } message SendSmsReq { string mobile = 1; int32 scene = 2; } message SendPasswordReq { string mobile = 1; string password = 2; string browser_info = 3; string ip = 4; string browser_name = 5; } message SendPasswordResp { int32 code = 1; }