123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /********************************************************************************
- ** Company: YC
- ** auth: CaoTing
- ** date: 2021\5
- ** desc: 账号登录回调
- *******************************************************************************/
- namespace Studio.Scripts.HttpMessage
- {
- public class AdvanceAccountMessage : BaseHttpMessage
- {
- public AdvanceAccountBody body;
- public AdvanceAccountMessage()
- {
- messageModuleType = MessageModuleType.Login;
- methodType = HttpMethodType.Post;
- _path = "v1/advanceAccount";
- headers = new Dictionary<string, string>();
- headers.Add("Content-Type", "application/json");
- _wwwForm = null;
- }
- public override WWWForm wwwForm
- {
- get
- {
- if (_wwwForm == null)
- {
- _wwwForm = GetWWWFrom<AdvanceAccountBody>(body);
- }
- return _wwwForm;
- }
- }
- public override string ToBodyString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(body);
- }
- }
- public struct AdvanceAccountBody
- {
- /// <summary>
- /// 账户
- /// </summary>
- public string account;
- /// <summary>
- /// 密码
- /// </summary>
- public string password;
- /// <summary>
- /// 设备id
- /// </summary>
- public string deviceID;
- /// <summary>
- /// 登陆设备来源
- /// </summary>
- public string source;
- }
- }
|