// 开医疗设备检查的功能
syntax = "proto3";

import "base.proto";

package com.ywt.gapi.system;

option java_multiple_files = true;
option java_package = "com.ywt.gapi.system";
option java_outer_classname = "SystemProto";


message Dept{
    int32 deptId = 1;
    string deptName = 2;
    string deptCode = 3;
    string yiDaCode = 4;	//医达科室code
    int32 parentId = 5;
    int32 subHospitalId = 6;
}

message HospitalDept{
    int32 deptId = 1;
    string deptName = 2;
    repeated Dept deptList = 3;
    string deptCode = 4;
}

message HospitalDeptListRequest{
    int32 hospitalId = 1;
    int32 subHospitalId = 2;
    string name = 3;
}

message HospitalDeptListResponse{
    Result result = 1;
    repeated HospitalDept hospitalDeptList = 2;
}
// 对应 rpc 项目的 SystemServiceImpl 类
service SystemService{
    rpc getHospitalDeptList(HospitalDeptListRequest) returns (HospitalDeptListResponse);	//获取医院所有科室列表

}