Demo entry 6770449

thrift file

   

Submitted by anonymous on Nov 13, 2018 at 13:37
Language: Thrift. Code size: 26.3 kB.

struct AuthorizeMsg
{
	1:string AuthUser="", //接入鉴权用户名,自助接入平台系统分配
	2:string AuthKey="", //接入鉴权密码,自助接入平台系统分配
	3:map<string,string> keyvalue, //扩展
}

struct RequestMsg
{
	1:i64 fuid, //操作者
	2:i64 tuid, //被操作者
	3:list<i64> tuids, //被操作者集合
	4:i64 topsid, //顶级频道
	5:list<i64> topsids, //
	6:i64 subsid, // 
	7:list<i64> subsids, //
	8:i64 time, //
	9:string reason, //
	10:bool flag, //
}

struct ChanIfSaReq
{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:RequestMsg reqmsg, //
}

struct ChanIfSaRes
{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
}


struct CommonRes
{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr; //返回信息
}

struct ChannelCommonRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:map<i64, i32> res,
}

/*
补充说明: 

1. 不同语言下的数据类型对照,请参照 Thrift 的数据类型定义: http://wiki.apache.org/thrift/ThriftTypes
2. 返回值:
在 C++ 中,非基本类型(基本类型:bool, char, int8_t, int16_t, int32_t, int64_t, double)的返回值是以引用参数的形式返回,而在 Java 中,将直接返回。

*/

enum thriftRolerOp{
  NULOP,
  ADD,
  REMOVE,
  CHANGE
  }

enum thriftChannelRoler {
  NUL_ROLE = 0,
  VISITOR = 20,   //VISITOR
  NORMAL = 25,		//U
  DELETED = 50,		//unuse
  TMPVIP = 66,		//TMPVIP
  VIP = 88,			//VIP
  MEMBER = 100,		//R
  CMANAGER = 150,		//CA
  PMANAGER = 175,		//PA
  MANANGER = 200,		//MAN
  VICE_OWNER = 230,   //VO
  OWNER = 255,		//OW
  KEFU = 300,			//CS
  POLICE = 400,   	//WJ
  SA = 1000,			//SA
}




//获取语音白名单
//struct getSpeakableUsersRes{
//  1:i32 rescode;
//  2:i64 topsid;
//  3:i64 uid;
//  4:map<i64, set<i64> > sid2uids;
//}

//修改频道信息返回值
struct updateSinfoRes{
  1:i32 rescode;
  2:i32 topsid;
  3:i32 subsid;
}



//
//struct ChannelUserCnt64{
//  1:i64 topsid;
//  2:i64 subsid;
//  3:i32 count;
//  4:bool isfloat;
//}


struct ChannelVpInfo{
	1:i64 tid;
	2:i16 rescode; // 200 for ok
	3:i32 vplimit; // the max vp count of this channel
	4:map<i16, i16> key_index;
	5:map<i64, list<string> > data_map;
}

struct RenPinConfigValue
{
  1:double WaterLevel;
  2:double NextBadDefaultValue;
  3:double NextGoodDefaultValue;
  4:i32 resCode;
}

struct RenPinPhaseConfig
{
  1:double firstValue;
  2:double secondValue;
  3:double thirdValue; 
  4:double fourthValue;
  5:i32 firstSeconds;  
  6:i32 secondSeconds;
  7:i32 thirdSeconds;
  8:i32 fourthSeconds;
  9:i32 resCode;
}

struct RenPinValues
{
  1:map<i32,double> uid2RenPin;
  2:i32 resCode;
}
struct RenPinValues64
{
  1:map<i64,double> uid2RenPin;
  2:i32 resCode;
}

struct PlatformDisableRes
{
  1:i32 resCode;
  2:bool isSet;
  3:i32 appid;
  4:i64 uid;
  5:i32 seconds;
  6:string reason;
}


struct TidRpValues
{
  1:map<i32,double> tid2RenPin;
  2:i32 resCode;
}
struct TidRpValues64
{
  1:map<i64,double> tid2RenPin;
  2:i32 resCode;
}


struct MonthRenPinValues
{
  1:map<i64,map<i32,double> > uid2month2Rp; //第一个key是uid,第二个key是月份和对应月份的rp值,如果有uid的key,内嵌的map位空,就默认这个uid满分
  2:i32 resCode;
}

struct RenPinValue
{
  1:i32 resCode;
  2:double renPinValue;
}

struct RPDisable
{
  1:i32 resCode;
  2:bool isDisable;
}


struct SubChannelUserCntDetail
{
  1:i32 topsid;
  2:i32 subsid;
  3:i32 UserCnt;
  4:i32 VirtualCnt;
  5:i32 TotalCnt;
}
struct SubChannelUserCntDetail64
{
  1:i64 topsid;
  2:i64 subsid;
  3:i32 UserCnt;
  4:i32 VirtualCnt;
  5:i32 TotalCnt;
}
struct SubChannelUserCntRes
{
  1:i32 rescode;
  2:list<SubChannelUserCntDetail> usercnt;
}
struct SubChannelUserCntRes64
{
  1:i32 rescode;
  2:list<SubChannelUserCntDetail64> usercnt;
}

struct RoomID
{
  1:i32 topsid;
  2:i32 subsid;
}
struct RoomID64
{
  1:i64 topsid;
  2:i64 subsid;
}

struct ChannelUserCntDetail
{
  1:i32 topsid;
  2:i32 UserCnt;
  3:i32 TotalCnt;
}
struct ChannelUserCntDetail64
{
  1:i64 topsid;
  2:i32 UserCnt;
  3:i32 TotalCnt;
}
struct ChannelUserCntRes
{
  1:i32 rescode;
  2:list<ChannelUserCntDetail> usercnt;
}
struct ChannelUserCntRes64
{
  1:i32 rescode;
  2:list<ChannelUserCntDetail64> usercnt;
}

struct ChannelSwitchRes
{
  1:map<i16, bool> options;
  2:map<i16, i32> parameters; 
}


 

// SA格式请求 
struct pingReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i32 uTime,
}

struct setUserRolerReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid,
	3:i64 sid,
	4:i64 fuid,
	5:i64 uid,
	6:thriftRolerOp op,
	7:thriftChannelRoler roler,
}

struct getChannelVpInfoRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:ChannelVpInfo vipinfo,
}

struct getChannelVpInfoReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid,
	3:i64 uid,
	4:list<i16> columns,
}



struct kickUserBatchWithTimeReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topSid, 
	3:list<i64> uids, 
	4:i32 time, 
	5:string reason,
}

struct kickUserBatchReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topSid, 
	3:list<i64> uids,
}

struct kickUserFromAllReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> uids, 
	3:i32 time, 
	4:string reason,
}


struct disableZoneTextChatReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> topsid, 
	3:bool bSet,
}

struct disableUserTextRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
}

struct updateChannelInfoRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:updateSinfoRes res,
}

struct updateChannelInfoReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:i64 updator, 
	5:map<i16, string> prop,
}

struct unicastReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid, 
	3:binary msg, 
	4:i32 uri, 
	5:i32 appkey, 
	6:i32 terminalType
}

struct yyunicastReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid, 
	3:binary msg, 
	4:i32 uri
}

struct broadcastReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i32 brctType, 
	3:list<i64> channels, 
	4:string msg
}


//返回值
struct getSinfoRes{
  1:i32 rescode;
  2:i64 topsid;
  3:i64 subsid;
  4:map<i16, string> prop;
}


//struct setChannelUserCntReq{
//	1:AuthorizeMsg authmsg, //鉴权信息,必选
//	2:list<ChannelUserCnt64> l,
//}

struct sendTextChatWithCheckReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid,
	3:i64 topsid,
	4:i64 subsid,
	5:string chat, 
	6:string nick,
	7:map<i16, string> extInfo,
	8:map<i32, string> extProps,
}



struct dismissChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 sid,
}

struct dismissSubChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid
}

struct addMIITControlListReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> uids,
}

struct delMIITControlListReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> uids,
}

struct isInPermissionWhitelistReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> sids,
}

struct addPermissionWhitelistReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> sids,
}

struct deletePermissionWhitelistReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> sids,
}

struct updateSmanagerChannelConfigReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 sid, 
	3:map<i16, bool> options, 
	4:map<i16, i32> parametres,
}

struct removeSmanagerChannelConfigReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 sid, 
	3:map<i16, bool> options, 
	4:map<i16, i32> parametres,
}

struct getSmanagerChannelSwitchRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:ChannelSwitchRes res,
}

struct getSmanagerChannelSwitchReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> sids,
}

struct getRenPinValueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RenPinValues64 res,
}

struct getRenPinValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> sids,
}

struct setRenPinValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid,
	3:double renPinValue,
}

struct setRenPinConfigDefaultValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:double WaterLevel,
	3:double NextBadDefaultValue,
	4:double NextGoodDefaultValue,
}

struct getRenPinConfigDefaultValueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RenPinConfigValue res,
}

struct getRenPinConfigDefaultValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
}

struct setRenPinDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:double renPinValue
}

struct setPlatformDisableReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid,
	3:i32 seconds,
	4:string reason,
}

struct getPlatformDisableRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:PlatformDisableRes res,
}

struct getPlatformDisableReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid
}

struct getRenPinDisableValueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RenPinValue res,
}

struct getRenPinDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
}

struct setRenPinSingleChanDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid,
	3:double renPinValue,
}

struct getMonthRenPinValueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:MonthRenPinValues Res,
}

struct getMonthRenPinValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:set<i64> uids,
}

struct getRenPinSingleChanDisableValueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RenPinValue res,
}

struct getRenPinSingleChanDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid,
}

struct setRenPinPhaseConfigReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:double firstLimitValue,
	3:double secondLimitValue,
	4:double thirdLimitValue,
    5:double fourthLimitValue,
    6:i32 firstSeconds,
    7:i32 secondSeconds,
    8:i32 thirdSeconds,
    9:i32 fourthSeconds,
}

struct getRenPinPhaseConfigRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RenPinPhaseConfig res,
}

struct getRenPinPhaseConfigReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
}

struct setRenPinMonthDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:double renPinValue,
}

struct getRenPinMonthDisableValueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RenPinValue res,
}

struct getRenPinMonthDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
}

struct setRenPinSingleChanMonthDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid,
	3:double renPinValue,
}

struct getRenPinSingleChanMonthDisableValueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RenPinValue res,
}

struct getRenPinSingleChanMonthDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid
}

/*
struct setRenPinSingleChanMonthDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid,
	3:double renPinValue
}
*/

/*
struct getRenPinSingleChanMonthDisableValueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 tid
}
*/

struct getRpOrMonthRpWithAllSingleChanRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:TidRpValues64 res,
}

struct getRpOrMonthRpWithAllSingleChanReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:bool ChooseRpNotMonthRp,
}

struct isRenPinDisableNewRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:RPDisable res,
}

struct isRenPinDisableNewReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid,
	3:i64 tid,
}


/*麦序接口响应请求 开始*/
struct topFirstReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:i64 uid, 
	5:i32 time,
}

struct kickoffQueueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:i64 uid,
}

struct joinQueueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:i64 uid, 
	5:i32 time,
}

struct muteQueueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:bool mute,
}

struct disableQueueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:bool disable,
}

struct setTimeQueueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:i32 time
}

struct settopFirstQueueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:i64 admin, 
	5:i64 uid, 
	6:i32 time,
}

struct getQueueRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:list<i64> queue, //麦序用户列表
}

struct getQueueReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid,
}

/*麦序接口响应请求 结束*/

/*踢人接口响应请求 开始*/

struct kickUserReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:list<i64> uids, 
	4:i32 time, 
	5:string reason,
}

struct resetUserKickReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:list<i64> uids,
}

/*踢人接口响应请求 结束*/

/*登陆人数接口响应请求 开始*/

struct robotLoginReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:list<i64> uids,
}

struct robotLogoutReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:list<i64> uids,
}

/*登陆人数接口响应请求 结束*/ 

/*用户封禁接口响应请求 开始*/

struct banIdReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 admin, 
	4:list<i64> uids, 
	5:bool isban, 
	6:string reason,
}

/*用户封禁接口响应请求 结束*/

/*用户禁止打字接口响应请求 开始*/

struct disableUserTextReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, //
	3:i64 subsid, //
	4:i64 admin, //
	5:list<i64> uids, //
	6:bool disable, //
	7:string reason, //
}

/*用户禁止打字接口响应请求 结束*/

/*发公屏接口响应请求 开始*/

struct sendTextChatReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 uid, 
	3:i64 topsid, 
	4:i64 subsid, 
	5:string chat, 
	6:string nick, 
	7:map<i16, string> extInfo, 
	8:map<i32, string> extProps
}

/*发公屏接口响应请求 结束*/

/*语音白名单接口响应请求 开始*/

struct setUserSpeakableReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:list<i64> uids,
	5:bool bset, 
}

struct syncUserSpeakableReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:list<i64> uids,
}

/*语音白名单接口响应请求 结束*/

/*子频道用户白名单接口响应请求 开始*/

struct getMoveSidWhiteListRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:list<i64> uids,
}

struct getMoveSidWhiteListReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 sid
}

struct addMoveSidWhiteUidReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 sid, 
	3:list<i64> uids
}

struct delMoveSidWhiteUidReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 sid, 
	3:list<i64> uids
}

/*子频道用户白名单接口响应请求 结束*/

/*公会相关接口响应请求 开始*/

struct ChangeSubSidSequenceReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

struct ChangeRolerReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
	3:i64 admin,
	4:i64 uid,
}

struct OfflineBansReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

struct UpdateChannelPasswdReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

struct UpdateChannelVoiceReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

struct UpdateChannelMemoReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

struct UpdateChannelScoreReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

/*公会相关接口响应请求 结束*/

/*频道信息接口响应请求 开始*/

enum VoiceQC{
	quality = 0, //高音质
	realtime = 1, //高实时性
}
enum ISPType{
    AUTO_DETECT = 0,
    CTL = 1,  //电信
    CNC = 2,  //网通
    MUTIL = 3,  //双线
    CNII = 4,  //铁通
    EDU = 8,  //教育网
    WBN = 16, //长城宽带
    MOB = 32, //移动
    BGP = 64,  //BGP
    ASIA = 128,  //亚洲
    HK = 128, //香港 deprecated
    SA_ISP = 256,  //南美 SA > SA_ISP 由于跟另一个枚举值声明冲突。
    BRA = 256,  // 巴西 deprecated
    EU = 512,  //欧洲
    NA = 1024, //北美
    TEST = 2048,
    OA = 4096,  //大洋洲国家
    AF = 8192,  // 非洲国家
    INTRANET = 32768, // 内网 
    MAX_ISP = 65536 //
}

struct CreateSubChannelInfo{
	1:i64 creator //创建者uid
	2:string name, //子频道名称
  	3:bool bLimit, //子频道只对会员及嘉宾开放
  	4:bool bPub, //是否对游客开放
  	5:string hello, //频道接待语
  	6:i64 pid; //父频道
  	7:i64 tid; //顶级频道
  	8:string password, //频道密码
  	9:VoiceQC qc, //语音质量 0:quality(高音质), 1:realtime(高实时性)
  	10:ISPType isp, //互联网服务提供商
}

struct CreateSubChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:CreateSubChannelInfo info, //创建子频道所需信息
}

struct DismissSubChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid,
}

struct UpdateChannelInfoReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
	3:i64 subsid,
	4:i64 updator,
	5:map<i32,string> chInfo, //更新的频道信息
}

struct GetChannelInfoRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:i64 topsid;
  	6:i64 subsid;
    7:map<i16, string> prop;
}

struct GetChannelInfoReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i64 subsid, 
	4:list<i32> properties, 
	5:i32 type
}

struct SetJiedaiReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
	3:i64 subsid,
	4:bool bSet, 
}

/*频道信息接口响应请求 结束*/

/*设置频道人数接口响应请求 开始*/

struct ChannelUserCnt{
  1:i64 topsid;
  2:i64 subsid;
  3:i64 count;
  4:bool isfloat;
}

struct setChannelUserCntReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<ChannelUserCnt> l,
}

/*设置频道人数接口响应请求 结束*/

/*临时频道分配接口响应请求 开始*/

struct tempSidRes{
  1:i64 topsid;
  2:i64 ownerId;
}

struct tempSidApplyRes{
	1:i32 rescode, //调用结果码,默认为0,必选
	2:map<string,string> keyvalue, //扩展,必选
	3:i32 retcode, //返回码
	4:string retstr, //返回信息
	5:tempSidRes res,
}

struct tempSidApplyReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 ownerId,
}

/*临时频道分配接口响应请求 结束*/

/*冻结锁定频道接口响应请求 开始*/

struct freezeChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
	3:i32 unfrozenTime,
}

struct unfreezeChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

struct loadFreezeChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
}

struct isChannelFrozenReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> sids,
}

struct lockChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid, 
	3:i32 unlockTime,
}

struct unlockChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:i64 topsid,
}

struct loadLockChannelReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
}

struct isChannelLockedReq{
	1:AuthorizeMsg authmsg, //鉴权信息,必选
	2:list<i64> sids,
}

/*冻结锁定频道接口响应请求 结束*/


//定义一个服务
service ChanService {

CommonRes ch_chanif_ping(1:pingReq req)

/*麦序接口 开始*/

CommonRes ch_chanif_topFirst(1:topFirstReq req)

CommonRes ch_chanif_kickoffQueue(1:kickoffQueueReq req)

CommonRes ch_chanif_joinQueue(1:joinQueueReq req)

CommonRes ch_chanif_muteQueue(1:muteQueueReq req)

CommonRes ch_chanif_disableQueue(1:disableQueueReq req)

CommonRes ch_chanif_setTimeQueue(1:setTimeQueueReq req)

CommonRes ch_chanif_settopFirstQueue(1:settopFirstQueueReq req)

getQueueRes ch_chanif_getQueue(1:getQueueReq req)

/*麦序接口 结束*/

/*踢人接口 开始*/

CommonRes ch_chanif_kickUser(1:kickUserReq req)

CommonRes ch_chanif_resetUserKick(1:resetUserKickReq req)

/*踢人接口 结束*/

/*登陆人数接口 开始*/

CommonRes ch_chanif_robotLogin(1:robotLoginReq req)

CommonRes ch_chanif_robotLogout(1:robotLogoutReq req)

/*登陆人数接口 结束*/

/*用户封禁接口 开始*/

CommonRes ch_chanif_banId(1:banIdReq req)

/*用户封禁接口 结束*/

/*用户禁止打字接口 开始*/

CommonRes ch_chanif_disableUserText(1:disableUserTextReq req)

/*用户禁止打字接口 结束*/

/*发公屏接口 开始*/

CommonRes ch_chanif_sendTextChat(1:sendTextChatReq req)

/*发公屏接口 结束*/


/*语音白名单接口 开始*/

CommonRes ch_chanif_setUserSpeakable(1:setUserSpeakableReq req)

CommonRes ch_chanif_syncUserSpeakable(1:syncUserSpeakableReq req)

/*语音白名单接口 结束*/

/*子频道用户白名单接口 开始*/

getMoveSidWhiteListRes ch_chanif_getMoveSidWhiteList(1:getMoveSidWhiteListReq req)

CommonRes ch_chanif_addMoveSidWhiteUid(1:addMoveSidWhiteUidReq req)

CommonRes ch_chanif_delMoveSidWhiteUid(1:delMoveSidWhiteUidReq req)

/*子频道用户白名单接口 结束*/

/*公会相关接口 开始*/

CommonRes ch_chanif_ChangeSubSidSequence(1:ChangeSubSidSequenceReq req)

CommonRes ch_chanif_ChangeRoler(1:ChangeRolerReq req) //废弃

CommonRes ch_chanif_setUserRoler(1:setUserRolerReq req) //替代上面的接口

CommonRes ch_chanif_OfflineBans(1:OfflineBansReq req)

CommonRes ch_chanif_UpdateChannelPasswd(1:UpdateChannelPasswdReq req)

CommonRes ch_chanif_UpdateChannelVoice(1:UpdateChannelVoiceReq req)

CommonRes ch_chanif_UpdateChannelMemo(1:UpdateChannelMemoReq req)

CommonRes ch_chanif_UpdateChannelScore(1:UpdateChannelScoreReq req)

/*公会相关接口 结束*/

/*频道信息接口 开始*/

CommonRes ch_chanif_CreateSubChannel(1:CreateSubChannelReq req)

CommonRes ch_chanif_DismissSubChannel(1:DismissSubChannelReq req)

CommonRes ch_chanif_UpdateChannelInfo(1:UpdateChannelInfoReq req)

GetChannelInfoRes ch_chanif_GetChannelInfo(1:GetChannelInfoReq req)

CommonRes ch_chanif_SetJiedai(1:SetJiedaiReq req)

/*频道信息接口 结束*/

/*设置频道人数接口 开始*/

CommonRes ch_chanif_setChannelUserCnt(1:setChannelUserCntReq req)

/*设置频道人数接口 开始*/

/*临时频道分配接口 开始*/

tempSidApplyRes ch_chanif_tempSidApply(1:tempSidApplyReq req)

/*临时频道分配接口 结束*/

/*冻结锁定频道接口 开始*/

CommonRes ch_chanif_freezeChannel(1:freezeChannelReq req)

CommonRes ch_chanif_unfreezeChannel(1:unfreezeChannelReq req)

ChannelCommonRes ch_chanif_loadFreezeChannel(1:loadFreezeChannelReq req)

ChannelCommonRes ch_chanif_isChannelFrozen(1:isChannelFrozenReq req)

CommonRes ch_chanif_lockChannel(1:lockChannelReq req)

CommonRes ch_chanif_unlockChannel(1:unlockChannelReq req)

ChannelCommonRes ch_chanif_loadLockChannel(1:loadLockChannelReq req)

ChannelCommonRes ch_chanif_isChannelLocked(1:isChannelLockedReq req)

/*冻结锁定频道接口 结束*/

/*工信部管制用户接口 开始*/

CommonRes ch_chanif_addMIITControlList(1:addMIITControlListReq req)

CommonRes ch_chanif_delMIITControlList(1:delMIITControlListReq req)

/*工信部管制用户接口 结束*/

/*频道开关接口 开始*/

CommonRes ch_chanif_updateSmanagerChannelConfig(1:updateSmanagerChannelConfigReq req)

CommonRes ch_chanif_removeSmanagerChannelConfigReq(1:removeSmanagerChannelConfigReq req)

getSmanagerChannelSwitchRes ch_chanif_getSmanagerChannelSwitch(1:getSmanagerChannelSwitchReq req)

/*频道开关接口 结束*/



/* 还未实现接口

//单播广播接口 开始 ///暂时不实现

CommonRes ch_chanif_unicast(1:unicastReq req)

CommonRes ch_chanif_yyunicast(1:yyunicastReq req)

CommonRes ch_chanif_broadcast(1:broadcastReq req)

//单播广播接口 结束///暂时不实现


getChannelVpInfoRes ch_chanif_getChannelVpInfo(1:getChannelVpInfoReq req)

CommonRes ch_chanif_kickUserBatchWithTime(1:kickUserBatchWithTimeReq req) //由kickUser实现

CommonRes ch_chanif_kickUserBatch(1:kickUserBatchReq req) //由kickUser实现

CommonRes ch_chanif_kickUserFromAll(1:kickUserFromAllReq req) //弃用

CommonRes ch_chanif_disableZoneTextChat(1:disableZoneTextChatReq req)//后端未实现

CommonRes ch_chanif_sendTextChatWithCheck(1:sendTextChatWithCheckReq req) //后端未实现

CommonRes ch_chanif_dismissChannel(1:dismissChannelReq req) //没有调用,废弃

CommonRes ch_chanif_dismissSubChannel(1:dismissSubChannelReq req) //ch_chanif_DismissSubChannel实现

updateChannelInfoRes ch_chanif_updateChannelInfo(1:updateChannelInfoReq req) //由ch_chanif_UpdateChannelInfo实现


// 虎牙语音白名单暂时不实现
ChannelCommonRes ch_chanif_isInPermissionWhitelist(1:isInPermissionWhitelistReq req)

CommonRes ch_chanif_addPermissionWhitelist(1:addPermissionWhitelistReq req)

CommonRes ch_chanif_deletePermissionWhitelist(1:deletePermissionWhitelistReq req)



// 人品接口暂时不实现

getRenPinValueRes ch_chanif_getRenPinValue(1:getRenPinValueReq req)

CommonRes ch_chanif_setRenPinValue(1:setRenPinValueReq req)

CommonRes ch_chanif_setRenPinConfigDefaultValue(1:setRenPinConfigDefaultValueReq req)

getRenPinConfigDefaultValueRes ch_chanif_getRenPinConfigDefaultValue(1:getRenPinConfigDefaultValueReq req)

CommonRes ch_chanif_setRenPinDisableValue(1:setRenPinDisableValueReq req)

CommonRes ch_chanif_setPlatformDisable(1:setPlatformDisableReq req)

getPlatformDisableRes ch_chanif_getPlatformDisable(1:getPlatformDisableReq req)

getRenPinDisableValueRes ch_chanif_getRenPinDisableValue(1:getRenPinDisableValueReq req)

CommonRes ch_chanif_setRenPinSingleChanDisableValue(1:setRenPinSingleChanDisableValueReq req)

getMonthRenPinValueRes ch_chanif_getMonthRenPinValue(1:getMonthRenPinValueReq req)

getRenPinSingleChanDisableValueRes ch_chanif_getRenPinSingleChanDisableValue(1:getRenPinSingleChanDisableValueReq req)

CommonRes ch_chanif_setRenPinPhaseConfig(1:setRenPinPhaseConfigReq req)

getRenPinPhaseConfigRes ch_chanif_getRenPinPhaseConfig(1:getRenPinPhaseConfigReq req)

CommonRes ch_chanif_setRenPinMonthDisableValue(1:setRenPinMonthDisableValueReq req)

getRenPinMonthDisableValueRes ch_chanif_getRenPinMonthDisableValue(1:getRenPinMonthDisableValueReq req)

CommonRes ch_chanif_setRenPinSingleChanMonthDisableValue(1:setRenPinSingleChanMonthDisableValueReq req)

getRenPinSingleChanMonthDisableValueRes ch_chanif_getRenPinSingleChanMonthDisableValue(1:getRenPinSingleChanMonthDisableValueReq req)

getRpOrMonthRpWithAllSingleChanRes ch_chanif_getRpOrMonthRpWithAllSingleChan(1:getRpOrMonthRpWithAllSingleChanReq req)

isRenPinDisableNewRes ch_chanif_isRenPinDisableNew(1:isRenPinDisableNewReq req)

*/
}

This snippet took 0.04 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).