浏览代码

feat:初始化

wangshan 3 年之前
父节点
当前提交
1e98f154e1
共有 4 个文件被更改,包括 82 次插入0 次删除
  1. 25 0
      jyBXCore/api/bxcore.api
  2. 16 0
      jyBXCore/rpc/bxcore.proto
  3. 25 0
      jyBXSubscribe/api/bxsubscribe.api
  4. 16 0
      jyBXSubscribe/rpc/bxsubscribe.proto

+ 25 - 0
jyBXCore/api/bxcore.api

@@ -0,0 +1,25 @@
+
+syntax = "v1"
+
+info (
+	title: // TODO: add title
+	desc: // TODO: add description
+	author: "wangshan"
+	email: "wangshan@topnet.net.cn"
+)
+
+type request {
+	// TODO: add members here and delete this comment
+}
+
+type response {
+	// TODO: add members here and delete this comment
+}
+
+service bxcore-api {
+	@handler GetUser // TODO: set handler name and delete this comment
+	get /users/id/:userId(request) returns(response)
+
+	@handler CreateUser // TODO: set handler name and delete this comment
+	post /users/create(request)
+}

+ 16 - 0
jyBXCore/rpc/bxcore.proto

@@ -0,0 +1,16 @@
+syntax = "proto3";
+
+package bxcore;
+option go_package="./bxcore";
+
+message Request {
+  string ping = 1;
+}
+
+message Response {
+  string pong = 1;
+}
+
+service Bxcore {
+  rpc Ping(Request) returns(Response);
+}

+ 25 - 0
jyBXSubscribe/api/bxsubscribe.api

@@ -0,0 +1,25 @@
+
+syntax = "v1"
+
+info (
+	title: // TODO: add title
+	desc: // TODO: add description
+	author: "wangshan"
+	email: "wangshan@topnet.net.cn"
+)
+
+type request {
+	// TODO: add members here and delete this comment
+}
+
+type response {
+	// TODO: add members here and delete this comment
+}
+
+service bxsubscribe-api {
+	@handler GetUser // TODO: set handler name and delete this comment
+	get /users/id/:userId(request) returns(response)
+
+	@handler CreateUser // TODO: set handler name and delete this comment
+	post /users/create(request)
+}

+ 16 - 0
jyBXSubscribe/rpc/bxsubscribe.proto

@@ -0,0 +1,16 @@
+syntax = "proto3";
+
+package bxsubscribe;
+option go_package="./bxsubscribe";
+
+message Request {
+  string ping = 1;
+}
+
+message Response {
+  string pong = 1;
+}
+
+service Bxsubscribe {
+  rpc Ping(Request) returns(Response);
+}