package domain

/*PushInfo 推送信息*/
type PushInfoOriginalRequest struct {
	Type         int      `json:"msgType"`
	ClientIdList []string `json:"clientId"`
	AppKey       string   `json:"appKey" valid:"Required"`
	Secret       string   `json:"secret" valid:"Required"`
	AppId        string   `json:"appId" valid:"Required"`

	Title   string                 `json:"title" valid:"Required"`
	Content string                 `json:"content" valid:"Required"`
	Ext     map[string]interface{} `json:"ext"` //key->transData:透传数据
}
type PushInfoResponse struct {
}

/*PushInfo 推送信息*/
type PushInfoRequest struct {
	Type       int     `json:"msgType"`
	Receivers  []int64 `json:"receivers"` //接受用户id列表
	ProjectKey string  `json:"project"`   //ability

	Title   string                 `json:"title" valid:"Required"`
	Content string                 `json:"content" valid:"Required"`
	Ext     map[string]interface{} `json:"ext"` //key->transData:透传数据
}

/*UpdateDevice 更新设备*/
type UpdateDeviceRequest struct {
	Muid        int64  `json:"muid" valid:"Required;"` //企业平台中的用户 UID
	ClientId    string `json:"clientId" valid:"Required"`
	DeviceToken string `json:"deviceToken"`
}
type UpdateDeviceResponse struct {
}

//设备信息
type Device struct {
	Uid         int64
	ClientId    string
	DeviceToken string
}

//应用信息
type AppInfo struct {
	Id              int
	AppKey          string
	AppMasterSecret string
	AppId           string
	ProjectName     string
	ProjectKey      string
}