123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- syntax = "proto3";
- package api.user.v2;
- import "google/api/annotations.proto";
- import "validate/validate.proto";
- option go_package = "w303a/server/apis/user/v2;v2";
- option java_multiple_files = true;
- option java_package = "apis.user.v2";
- service SchoolDisable {
- // 手表获取上课禁用
- rpc GetWristwatchSchoolDisable (GetWristwatchSchoolDisableRequest) returns (GetWristwatchSchoolDisableResponse) {
- option(google.api.http) = {
- get: "/apis/v2/userctx/user/child/school-disable/wristwatch/get"
- };
- };
- // 获取上课禁用
- rpc GetSchoolDisable (GetSchoolDisableRequest) returns (GetSchoolDisableResponse) {
- option(google.api.http) = {
- get: "/apis/v2/userctx/user/child/school-disable/get"
- };
- };
- // 创建上课禁用
- rpc CreateSchoolDisable (CreateSchoolDisableRequest) returns (CreateSchoolDisableResponse) {
- option(google.api.http) = {
- post: "/apis/v2/userctx/user/child/school-disable/create"
- body: "*"
- };
- };
- // 更新上课禁用
- rpc UpdateSchoolDisable (UpdateSchoolDisableRequest) returns (UpdateSchoolDisableResponse) {
- option(google.api.http) = {
- post: "/apis/v2/userctx/user/child/school-disable/update"
- body: "*"
- };
- };
- // 删除上课禁用
- rpc DeleteSchoolDisable (DeleteSchoolDisableRequest) returns (DeleteSchoolDisableResponse) {
- option(google.api.http) = {
- get: "/apis/v2/userctx/user/child/school-disable/delete"
- };
- };
- }
- // 手表获取上课禁用 Request
- message GetWristwatchSchoolDisableRequest {
- string ticket = 2 [(validate.rules).string.min_len = 1];
- }
- // 手表获取上课禁用 Response
- message GetWristwatchSchoolDisableResponse {
- message SchoolDisable {
- string cid = 1;
- string repeats = 2;
- string startTime = 3;
- string endTime = 4;
- bool status = 5;
- int64 id = 6;
- }
- repeated SchoolDisable schoolDisables = 1;
- }
- // 获取上课禁用 Request
- message GetSchoolDisableRequest {
- string cid = 1 [(validate.rules).string.uuid = true, (validate.rules).string.min_len = 1];
- }
- // 获取上课禁用 Response
- message GetSchoolDisableResponse {
- message SchoolDisable {
- string cid = 1;
- string repeats = 2;
- string startTime = 3;
- string endTime = 4;
- bool status = 5;
- int64 id = 6;
- }
- repeated SchoolDisable schoolDisables = 1;
- }
- // 创建上课禁用 Request
- message CreateSchoolDisableRequest {
- string cid = 1 [(validate.rules).string.uuid = true];
- string repeats = 2;
- string startTime = 3 [(validate.rules).string.min_len = 1];
- string endTime = 4 [(validate.rules).string.min_len = 1];
- bool status = 5;
- }
- // 创建上课禁用 Response
- message CreateSchoolDisableResponse {
- int64 id = 1 [(validate.rules).int64.gt = 0];
- }
- // 更新上课禁用 Request
- message UpdateSchoolDisableRequest {
- int64 id = 1 [(validate.rules).int64.gt = 0];
- string cid = 2 [(validate.rules).string.uuid = true, (validate.rules).string.min_len = 1];
- string repeats = 3;
- string startTime = 4 [(validate.rules).string.min_len = 1];
- string endTime = 5 [(validate.rules).string.min_len = 1];
- bool status = 6;
- }
- // 更新上课禁用 Response
- message UpdateSchoolDisableResponse {}
- // 删除上课禁用 Request
- message DeleteSchoolDisableRequest {
- int64 id = 1 [(validate.rules).int64.gt = 0];
- }
- // 删除上课禁用 Response
- message DeleteSchoolDisableResponse {}
|