using Assets.Scripts.Apis.Models; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace Assets.Scripts.Apis { public class MailApi : ApiBase { public async Task>> GetList(int pageIndex,int pageSize, int type) { var result = await GetAsync>>($"Message/GetList?pageIndex={pageIndex}&pageSize={pageSize}&type={type}"); return result; } public async Task> MarkRead(int id) { var result = await PostAsync>("Message/MarkRead",new { id}); return result; } public async Task> Delete(int id) { var result = await PostAsync>("Message/Delete", new { id }); return result; } } }