61 lines
1.1 KiB
Thrift
61 lines
1.1 KiB
Thrift
namespace go audioAndVideoCalls
|
|
|
|
enum Code {
|
|
Success = 1
|
|
ParamInvalid = 2
|
|
DBErr = 3
|
|
ServerError = 4
|
|
}
|
|
|
|
|
|
struct audioCallReq {
|
|
1: string user_id (api.body="user_id");
|
|
2: string target_user_id (api.body="target_user_id");
|
|
}
|
|
|
|
struct audioCallResp {
|
|
1: Code code
|
|
2: string msg
|
|
}
|
|
|
|
|
|
service AudioCallService {
|
|
audioCallResp audioCall(1: audioCallReq request) (api.post="/v1/audio_call/");
|
|
}
|
|
|
|
struct videoCallReq {
|
|
1: string user_id (api.body="user_id");
|
|
2: string target_user_id (api.body="target_user_id");
|
|
}
|
|
|
|
struct videoCallResp {
|
|
1: Code code
|
|
2: string msg
|
|
}
|
|
|
|
service VideoCallService {
|
|
videoCallResp videoCall(1: videoCallReq request) (api.post="/v1/video_call/");
|
|
}
|
|
|
|
|
|
struct roomListReq {
|
|
|
|
}
|
|
|
|
struct roomListResp {
|
|
|
|
}
|
|
|
|
struct RemoveRoomReq {
|
|
1: string room_id (api.body="room_id");
|
|
}
|
|
|
|
struct RemoveRoomResp {
|
|
1: Code code
|
|
2: string msg
|
|
}
|
|
|
|
service RoomService {
|
|
roomListResp RoomList(1: roomListReq request) (api.get="/v1/roomlist/");
|
|
RemoveRoomResp RoomRemove(1: RemoveRoomReq request) (api.delete="/v1/room/");
|
|
} |