123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- 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 type_id = 1; // 类型id;
- string reply_name = 2; // 回复名称;
- string reply_content = 3; // 回复内容;
- string reply_gen_time = 4; // 生成日期;
- }
- // 用户表记录
- 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{
- tb_customer customer = 1;
- rec_type types = 2;
- rec_reply replys = 3;
- }
|