syntax = "proto3"; package water; option go_package="./water"; import "google/api/annotations.proto"; message WifiCheckRequest { string host_code = 1; } message WifiSetRequest { string host_code = 1; } message HostCodeRequest { string host_code = 1; } message LogItemsRequest { int32 page = 1; int32 size = 2; string time = 3; string host_code = 4; } message AddLogRequest { string host_code = 1; string data = 2; string time = 3; } message Response { int32 code = 1; string msg = 2; string data = 3; } message EmptyRequest { } message SettingRequest { string host_code = 1; int32 salt_percent =2; int32 hardness = 3; string refresh_time = 4; int32 use_number = 5; int32 soften = 6; } service Water { rpc WifiCheck(WifiCheckRequest) returns (Response) { option (google.api.http) = { get: "/api/v3/water/wifi/check" body: "*" }; } rpc WifiSet(WifiSetRequest) returns (Response) { option (google.api.http) = { post: "/api/v3/water/wifi/set" body: "*" }; } rpc AddLog(AddLogRequest) returns (Response) { option (google.api.http) = { get: "/api/v3/water/add/log" body: "*" }; } rpc LogItems(LogItemsRequest) returns (Response) { option (google.api.http) = { get: "/api/v3/water/log/items" body: "*" }; } rpc Setting(SettingRequest) returns (Response) { option (google.api.http) = { get: "/api/v3/water/setting" body: "*" }; } rpc GetSetting(HostCodeRequest) returns (Response) { option (google.api.http) = { get: "/api/v3/water/get/setting" body: "*" }; } }