doctor.proto 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. syntax = "proto3";
  2. import "base.proto";
  3. import "system.proto";
  4. package com.ywt.gapi.user;
  5. option java_generic_services = true;
  6. option java_multiple_files = true;
  7. option java_package = "com.ywt.gapi.user";
  8. option go_package = "/doctor";
  9. //医生信息
  10. message Doctor {
  11. int32 userid = 1;
  12. string title = 2;
  13. string specialty = 3;
  14. string briefintro = 4;
  15. int64 createtime = 5;
  16. int64 updatetime = 6;
  17. }
  18. //医生详细信息
  19. message DoctorInfo{
  20. int32 doctorid = 1;
  21. string name = 2;
  22. string avatar = 3;
  23. string city = 4;
  24. string hospital = 5;
  25. string specialty = 6;
  26. int32 status = 7;
  27. string title = 8;
  28. string dept = 9;
  29. string hospitalIds = 10;
  30. string deptIds = 11;
  31. int32 scheduleStatus = 12; //医生出诊状态
  32. int32 consultFee = 13; //医生咨询费用(单位:分)
  33. string qrCodeUrl = 14; //二维码链接
  34. string briefIntro = 15; //简介
  35. int32 signId = 16; //医生签名ID
  36. string signUrl = 17; //医生签名地址
  37. int32 baseInfoStatus = 18; //基本信息是否填写(0-未填写,1-已填写)
  38. int32 licenseStatus = 19; //认证状态(0-未通过,1-已通过)
  39. string mobile = 20; //手机号
  40. int32 authType = 21; //认证方式, 0-后台导入;1-医生认证
  41. int32 userType = 22; //用户类型
  42. string rpContent = 23; //处方二维码内容
  43. string rpUrl = 24; //处方二维码链接
  44. string avatar2 = 25;
  45. string rpContentPc = 26; //处方二维码内容PC端
  46. string rpUrlPc = 27; //处方二维码链接PC端
  47. int32 pharmacyId = 28;
  48. string pharmacyName = 29;
  49. }
  50. //获取所有医生信息请求
  51. message GetDoctorAllRequest {
  52. int32 doctorId = 1;
  53. }
  54. //获取所有医生信息响应
  55. message GetDoctorAllResponse{
  56. int32 code = 1;
  57. repeated DoctorInfo doctorInfos = 2; //医生信息集合
  58. }
  59. //医生相关服务 // 对应 rpc 项目的 DoctorServiceImpl 类
  60. service DoctorService {
  61. //获取所有医生信息
  62. rpc getDoctorAll (GetDoctorAllRequest) returns (GetDoctorAllResponse);
  63. }