12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /********************************************************************************
- ** Company: YC
- ** auth: CaoTing
- ** date: 2021\5
- ** desc: 修改角色信息
- *******************************************************************************/
- namespace Studio.Scripts.HttpMessage
- {
- public class ModifyRoleMessage : BaseHttpMessage
- {
- public ModifyRoleBody body;
- public string token
- {
- set
- {
- headers["token"] = value;
- }
- }
- public override string path
- {
- get
- {
- _path = GetHttpGetForm<ModifyRoleBody>(_path, body);
- return _path;
- }
- }
- public ModifyRoleMessage()
- {
- messageModuleType = MessageModuleType.Set;
- methodType = HttpMethodType.Post;
- _path = "v1/modifyRole";
- 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<ModifyRoleBody>(body);
- }
- return _wwwForm;
- }
- }
- public override string ToBodyString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(body);
- }
- }
- public struct ModifyRoleBody
- {
- public string avatar;
- public string nickName;
- }
- }
|