using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************** ** Company: YC ** auth: CaoTing ** date: 2021\5\24 ** desc: 文件存储地址 *******************************************************************************/ namespace Studio.Scripts.HttpMessage { public class FileAddressMessage : BaseHttpMessage { public FileAddressBody body; public string token { set { headers["token"] = value; } } public FileAddressMessage() { messageModuleType = MessageModuleType.Common; methodType = HttpMethodType.Get; _path = "v1/fileAddress"; 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 FileAddressBody { } }