1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Studio.Scripts.HttpMessage;
- using System.Collections;
- using UnityEngine;
- using System.Collections.Generic;
- /********************************************************************************
- ** Company: YC
- ** auth: CaoTing
- ** date: 2021\5\21
- ** desc: 获取资源详情
- *******************************************************************************/
- namespace Studio.Scripts.HttpMessage
- {
- public class GetArtDetailMessage : BaseHttpMessage
- {
- public GetArtDetailBody body;
- public string token
- {
- set
- {
- headers["token"] = value;
- }
- }
- public GetArtDetailMessage()
- {
- messageModuleType = MessageModuleType.Login;
- methodType = HttpMethodType.Post;
- _path = "v1/artDetail";
- 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<GetArtDetailBody>(body);
- }
- return _wwwForm;
- }
- }
- public override string ToBodyString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(body);
- }
- }
- public struct GetArtDetailBody
- {
- /// <summary>
- /// 资源id
- /// </summary>
- public string ArtID;
- }
- }
|