add some text here

This commit is contained in:
funui 2025-06-17 10:08:15 +08:00
commit 2879fc0ba0
4 changed files with 1273 additions and 0 deletions

1
build.bat Normal file
View File

@ -0,0 +1 @@
protoc --go_out=. *.proto

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.yhrjkj.com/miczhang/yihaobao-proto
go 1.24.2

137
msg.proto Normal file
View File

@ -0,0 +1,137 @@
syntax = "proto3";
package ws;
option go_package = "./pb";
enum MsgType {
UNKNOWN = 0;
AUTH_CLIENT = 100;
UPLOAD_SYS_INFO = 101;
QUERY_PLAN = 102;
//
NOTIFY_CLIENT_UPDATE = 200;
//
NOTIFY_CLIENT_INSERT_PLAN = 201;
//
NOTIFY_CLIENT_UPDATE_PLAN = 202;
}
message Msg {
MsgType type = 1;
bytes data = 2;
}
message Empty {}
//
message AuthClientReq {
string token = 1;
}
message AuthClientResp {
string Name = 1;
}
//
message UploadSysInfoReq {
string Version = 1;
string Ip = 2;
string OsName = 3;
}
//
message QueryPlanReq {
string PlanId = 1;
}
message QueryQryUserInfo {
string UserId = 1;
string UserName = 2;
string Password = 3;
}
message QueryPlanUserInfo {
string UserId = 1;
string UserName = 2;
string Password = 3;
string TimePoints = 4;
}
enum PlanStatusType {
PLAN_STATUS_UNKNOWN = 0;
PLAN_STATUS_RUNNING = 2;
PLAN_STATUS_STOPPED = 3;
}
message DoctorInfo {
//
string HospitalName = 1;
//
string HospitalCode = 2;
//
string BranchName = 3;
//
string BranchCode = 4;
//
string DeptName = 5;
//
string DeptCode=6;
//
string DoctorName = 7;
//
string DoctorCode = 8;
//
string DoctorTitle = 9;
//
string DoctorPhone = 10;
//
string DoctorFee = 11;
}
//
message AppointmentInfo {
//
string Date = 1;
//
string StartTime = 2;
//
string EndTime = 3;
}
//
message PatientInfo {
//
string Name = 1;
//
string Gender = 2;
//
string Telephone = 3;
//
string IdCard = 4;
// ic卡号
string IcCard = 5;
// iC卡ID
string IcCardId = 6;
//
bool IsArmy = 7;
//
AppointmentInfo Appointment = 8;
}
message PlanInfo {
string PlanId = 1;
string PlanName = 2;
string PlanDesc = 3;
PlanStatusType PlanStatus = 4;
string ExecTime = 5;//
//
DoctorInfo Doctor = 6;
//
repeated PatientInfo Patient = 7;
}

1132
pb/msg.pb.go Normal file

File diff suppressed because it is too large Load Diff