using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************** ** Company: YC ** auth: PeiTengFei ** date: 2021\7\5 ** desc: 搜索资源列表 *******************************************************************************/ namespace Studio.Scripts.HttpMessage { public class SearchArtListMessage : BaseHttpMessage { public SearchAirBody body; public string token { set { headers["token"] = value; } } public SearchArtListMessage() { messageModuleType = MessageModuleType.Room; methodType = HttpMethodType.Post; _path = "v1/searchArtRole"; 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 SearchAirBody { /// /// 资源类型 /// public int artType; /// /// 搜索关键字 /// public string keywords; /// /// 文件类型 /// public int fileType; } } }