123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- 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<string, string>();
- headers.Add("Content-Type", "application/json");
- headers.Add("token", "");
- _wwwForm = null;
- }
- public override WWWForm wwwForm
- {
- get
- {
- if (_wwwForm == null)
- {
- _wwwForm = GetWWWFrom<SearchAirBody>(body);
- }
- return _wwwForm;
- }
- }
- public override string ToBodyString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(body);
- }
- public struct SearchAirBody
- {
- /// <summary>
- /// 资源类型
- /// </summary>
- public int artType;
- /// <summary>
- /// 搜索关键字
- /// </summary>
- public string keywords;
- /// <summary>
- /// 文件类型
- /// </summary>
- public int fileType;
- }
- }
- }
|