syntax = "proto3";

import "base.proto";

package com.ywt.gapi.doctor;

option java_multiple_files = true;
option java_package = "com.ywt.gapi.doctor";
option java_outer_classname = "DoctorProto";


//医生对于医院的code
message DoctorHisCode{
    int32 doctorId = 1;     //医生ID
    int32 hospitalId = 2;   //医院ID
    string deptCode = 3;     //his的部门编号
    string doctorCode = 4;   //his的医生编号
    string doctorName = 5;  //医生姓名
    string doctorJobNum = 6; // 用于处方回写插入医嘱 & 诊断的医生代码
}

// 保存DoctorHisCodeList请求
message SaveDoctorHisCodeListRequest{
    repeated DoctorHisCode doctorHisCode = 1;
}

// 保存DoctorHisCodeList响应
message SaveDoctorHisCodeListResponse{
    Result result = 1;
}


//医生相关服务      // 对应 rpc 项目的 DoctorServiceImpl 类
service DoctorService {

    // 保存DoctorHisCodeList响应
    rpc saveDoctorHisCodeList(SaveDoctorHisCodeListRequest) returns (SaveDoctorHisCodeListResponse);
}
