12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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<AvatarBody>(_path, body);
- return _path;
- }
- }
- public GetAvatarListMessage()
- {
- messageModuleType = MessageModuleType.Login;
- methodType = HttpMethodType.Get;
- _path = "v1/avatar";
- 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<AvatarBody>(body);
- }
- return _wwwForm;
- }
- }
- public override string ToBodyString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(body);
- }
- }
- public struct AvatarBody
- {
- /// <summary>
- /// 登陆设备来源
- /// </summary>
- //public string source;
- }
- }
|