123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- syntax = "proto3";
- package userext.v1;
- option go_package = "v1";
- import "github.com/gogo/protobuf/gogoproto/gogo.proto";
- service Remind {
-
- /** 预约、取消提醒
- *
- */
- rpc operate (RemindOperateReq) returns (RemindOperateResp);
-
- /** 查询预约状态
- *
- */
- rpc query (RemindQueryReq) returns (RemindQueryResp);
-
- /** 预约、取消提醒
- *
- */
- rpc submit (RemindSubmitReq) returns (RemindSubmitResp);
-
- /** 查询预约状态
- *
- */
- rpc get (RemindGetReq) returns (RemindGetResp);
- }
- message RemindOperateReq {
- // 活动 id
- int64 aid = 1 [(gogoproto.jsontag) = "aid"];
- // 0.取消 1.预约
- int64 action = 2 [(gogoproto.jsontag) = "action"];
- }
- message RemindOperateResp {
- // code
- int64 code = 1 [(gogoproto.jsontag) = "code"];
- // msg
- string msg = 2 [(gogoproto.jsontag) = "msg"];
- //
- Data data = 3 [(gogoproto.jsontag) = "data"];
-
- message Data {
-
- }
- }
- message RemindQueryReq {
- // 活动 id
- int64 aid = 1 [(gogoproto.jsontag) = "aid"];
- }
- message RemindQueryResp {
- // code
- int64 code = 1 [(gogoproto.jsontag) = "code"];
- // msg
- string msg = 2 [(gogoproto.jsontag) = "msg"];
- //
- Data data = 3 [(gogoproto.jsontag) = "data"];
-
- message Data {
- // 活动 ID
- int64 aid = 1 [(gogoproto.jsontag) = "aid"];
- // 1.已经预约 2.没有预约
- int64 status = 2 [(gogoproto.jsontag) = "status"];
- }
- }
- message RemindSubmitReq {
- // 事件类型
- int64 type = 1 [(gogoproto.jsontag) = "type"];
- // 事件 id (多个用逗号拼接)
- string event_id = 2 [(gogoproto.jsontag) = "event_id"];
- // 提交来源
- int64 source = 3 [(gogoproto.jsontag) = "source"];
- // 1.预约 2.取消预约
- int64 action = 4 [(gogoproto.jsontag) = "action"];
- }
- message RemindSubmitResp {
- // code
- int64 code = 1 [(gogoproto.jsontag) = "code"];
- // msg (预约成功,已过期,未开始)
- string msg = 2 [(gogoproto.jsontag) = "msg"];
- //
- Data data = 3 [(gogoproto.jsontag) = "data"];
-
- message Data {
-
- }
- }
- message RemindGetReq {
- // 事件类型
- int64 type = 1 [(gogoproto.jsontag) = "type"];
- // 事件 id
- string event_id = 2 [(gogoproto.jsontag) = "event_id"];
- }
- message RemindGetResp {
- // code
- int64 code = 1 [(gogoproto.jsontag) = "code"];
- // msg
- string msg = 2 [(gogoproto.jsontag) = "msg"];
- //
- Data data = 3 [(gogoproto.jsontag) = "data"];
-
- message List {
- // 事件类型
- int64 type = 1 [(gogoproto.jsontag) = "type"];
- // 活动 ID
- int64 event_id = 2 [(gogoproto.jsontag) = "event_id"];
- // 1.已经预约 2.没有预约
- int64 status = 3 [(gogoproto.jsontag) = "status"];
- // 预约的时间
- string date = 4 [(gogoproto.jsontag) = "date"];
- }
-
- message Data {
- //
- repeated List list = 1 [(gogoproto.jsontag) = "list"];
- }
- }
|