Skip to content

Commit

Permalink
feat:add issueList-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
ViolaPioggia committed Nov 16, 2023
1 parent 22f936a commit 866a1db
Show file tree
Hide file tree
Showing 19 changed files with 6,877 additions and 919 deletions.
30 changes: 30 additions & 0 deletions server/idl/base.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,34 @@ struct Message {
struct LatestMsg{
1: string message // Latest chat messages with this friend
2: i64 msgType // message type, 0 => the message received by the current requesting user, 1 => the message sent by the current requesting user
}

struct medicalHistoryInfo{
1:string symptom //患者的主要症状或原因
2:string description //病情描述
3:string histroy //过去的疾病、手术、药物过敏等历史记录。
4:string familyInfo //患者家族中与当前疾病相关的疾病或遗传疾病的记录
} //病史信息

struct bodyInfo{
1:string bloodPressure//血压
2:string heartRate //心率
3:string height //身高
4:string weight //体重
5:i64 create_time
6:i64 update_time
} //身体指标

struct IssueList{
1: string user_id
2: string username
3: bool gender
4: i32 age
5: i64 create_time
6: i64 update_time
7: list<string> department
8: medicalHistoryInfo medicalHistoryInfo
9: bodyInfo bodyInfo
10: string introduction
11: list<string> medicine
}
21 changes: 21 additions & 0 deletions server/idl/user.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,25 @@ struct qingyu_get_relation_friend_list_response {
2: list<base.FriendUser> user_list, // List of user information
}

struct qingyu_update_issue_list_request{
1: i64 user_id,
2: base.IssueList issue_list,
}

struct qingyu_update_issue_list_response{
1: base.qingyu_base_response base_resp,
}

struct qingyu_get_issue_list_request{
1: i64 user_id,
}

struct qingyu_get_issue_list_response{
1: base.qingyu_base_response base_resp,
2: base.IssueList issue_list
}


service UserService {
qingyu_user_register_response Register(1: qingyu_user_register_request req),
qingyu_user_login_response Login(1: qingyu_user_login_request req),
Expand All @@ -82,4 +101,6 @@ service UserService {
qingyu_get_relation_follow_list_response GetFollowList(1: qingyu_get_relation_follow_list_request req),
qingyu_get_relation_follower_list_response GetFollowerList(1: qingyu_get_relation_follower_list_request req),
qingyu_get_relation_friend_list_response GetFriendList(1: qingyu_get_relation_friend_list_request req),
qingyu_update_issue_list_response UpdateIssueList(1:qingyu_update_issue_list_request req)
qingyu_get_issue_list_response GetIssueList(1:qingyu_get_issue_list_request req)
}
Loading

0 comments on commit 866a1db

Please sign in to comment.