Bläddra i källkod

使用protoc目录,用来放置lib库和dll、exe、bat以及项目的proto文件

Jeff 6 år sedan
förälder
incheckning
6a956302d7

BIN
source/hook/lib/gmock.lib


BIN
source/hook/lib/gmock_main.lib


BIN
source/hook/protoc/lib/gmock.lib


BIN
source/hook/protoc/lib/gmock_main.lib


BIN
source/hook/protoc/lib/libprotobuf-lite.lib


BIN
source/hook/protoc/lib/libprotobuf-lited.lib


BIN
source/hook/protoc/lib/libprotobuf.lib


BIN
source/hook/protoc/lib/libprotobufd.lib


BIN
source/hook/protoc/lib/libprotoc.lib


BIN
source/hook/protoc/lib/libprotocd.lib


BIN
source/hook/protoc/libprotobuf-lite.dll


BIN
source/hook/protoc/libprotobuf.dll


BIN
source/hook/protoc/libprotoc.dll


+ 17 - 0
source/hook/protoc/msg.proto

@@ -0,0 +1,17 @@
+syntax = "proto3";
+
+// 登录消息;
+message msg_login {
+    string      phone = 1;           // 登录手机;
+    string      passwrod = 2;        // 登录密码; 
+    string      system = 3;          // 系统信息:系统、内存、cpu、mac、硬盘大小等,使用josn字符串;
+}
+
+// 注册消息;
+message msg_register{
+    string      phone = 1;               // 用户id;
+    string      name = 2;                // 用户姓名或昵称;
+    bool        gender = 3;              // 用户性别;
+    string      passwrod = 4;            // 登录密码; 
+    string      vcode = 5;               // 用户验证码(如果空:表示生成验证码发送用户手机; 如果有表示注册行为);
+}

+ 4 - 0
source/hook/protoc/protoc.bat

@@ -0,0 +1,4 @@
+@echo ÉúłÉ.protośÔÓŚľÄ.pb.hşÍ.pb.cc
+%~dp0protoc.exe --proto_path=%~dp0 --cpp_out=..\pb\ table.proto msg.proto
+@echo ÍęłÉ
+pause

BIN
source/hook/protoc/protoc.exe


+ 53 - 0
source/hook/protoc/table.proto

@@ -0,0 +1,53 @@
+syntax = "proto3";
+// required和optional都不再支持,默认optional;
+
+// 用户表;
+message tb_customer{
+    string      customer_id = 1;                    // id;
+    string      customer_name = 2;                  // 昵称;
+    bool        customer_gender = 3;                // 性别;
+    string      customer_phone = 4;                 // 手机;
+    string      customer_password = 5;              // 登录密码;
+    string      customer_old_phone = 6;             // 旧手机;
+    string      customer_vcode = 7;                 // 验证码;
+    string      customer_vcode_expiry_time = 8;     // 验证码有效期;
+    bool        customer_enable = 9;                // 是否启用;
+    string      customer_gen_time = 10;             // 生成日期;
+}
+
+// 回复类型表;
+message tb_type{
+    string      customer_id = 1;                    // 用户id;
+    string      type_id = 2;                        // 类型id;
+    string      type_name = 3;                      // 类型名称;
+    string      type_gen_time = 4;                  // 生成日期;
+}
+
+// 回复详情表;
+message tb_reply{
+    string      customer_id = 1;                    // 用户id;
+    string      type_id = 2;                        // 类型id;
+    string      reply_id = 3;                       // 回复id;
+    string      reply_name = 4;                     // 回复名称;
+    string      reply_content = 5;                  // 回复内容;
+    string      reply_gen_time = 6;                 // 生成日期;
+}
+
+// 用户表记录
+message rec_customer{
+    repeated tb_customer customers = 1;
+}
+
+// 类型表记录;
+message rec_type{
+    repeated tb_type types = 1;
+}
+
+// 回复详情记录;
+message rec_reply {
+    repeated tb_reply replys = 1;
+}
+
+message view{
+    
+}