using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************** ** Company: YC ** auth: CaoTing ** date: 2021\5\19 ** desc: 获取头像列表 *******************************************************************************/ namespace Studio.Scripts.HttpMessage { public class GetAvatarListMessage : BaseHttpMessage { public AvatarBody body; public string token { set { headers["token"] = value; } } public override string path { get { _path = GetHttpGetForm(_path, body); return _path; } } public GetAvatarListMessage() { messageModuleType = MessageModuleType.Login; methodType = HttpMethodType.Get; _path = "v1/avatar"; headers = new Dictionary(); headers.Add("Content-Type", "application/json"); headers.Add("token", ""); _wwwForm = null; } public override WWWForm wwwForm { get { if (_wwwForm == null) { _wwwForm = GetWWWFrom(body); } return _wwwForm; } } public override string ToBodyString() { return Newtonsoft.Json.JsonConvert.SerializeObject(body); } } public struct AvatarBody { /// /// 登陆设备来源 /// //public string source; } }