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