syntax = "proto3";

option go_package = "./;rpc_proto";
package rpc_proto;

message PropPackIner
{
	string		id = 1;
	uint64		create_ts = 2;			//购买时间戳
	uint64		end_ts = 3;				//end_ts为0即永久道具
	uint32		count = 4;				//道具数量，目前1
}

message PropPack
{
	repeated PropPackIner	props = 1;
}

message PropVipDes
{
	uint32		ptype = 1;				//道具类型
	uint32		continuous = 2;
	uint32		vtype = 3;				//vip type
	uint32		count = 4;
}

message PropDesIner
{
	string			id = 1;
	repeated PropVipDes		prop_vip = 2;
}

message PropDes
{
	repeated PropDesIner	props = 1;
}

message VIP
{
	uint32			type = 1;			//vip类型		（0：普通用户，1：包月，2：包季，3：包年，1000：试用）
	uint64			start_ts = 2;		//vip起始时间戳
	uint64			end_ts = 3;			//vip结束时间戳
	uint64			interval = 4;		//vip持续时间段
	uint32			continuous = 5;		//是否位连续			（废弃）
	uint64			sub_end_ts = 6;		//订阅的截至日期
	uint32			trial_flag = 7;		//是否是试用期
	uint32			expired_flag = 8;	//是否过期
	uint32			vmonth = 9;
	uint32			purchased_flag = 10;		//已购买过vip（全VIP互斥）
}

message StuffStatus
{
	uint32			purchased_flag = 1;
	uint32			vip_flag = 2;
	uint32			allpack_flag = 3;				//购买整包
	uint32			trialpack_flag = 4;				//购买体验包
}

message BackPack
{
	PropPack		prop_pack = 1;			//购买道具的id
	StuffStatus		stuff_status = 2;
	VIP				vip = 3;
	PropDes			prop_des = 4;
}

message RpcGetUserBackPackReq
{
	
}

message RpcGetUserBackPackRsp
{
	BackPack		backpack = 1;
}

message RpcClearBackPackReq
{
	
}

message RpcClearBackPackRsp
{
	
}