注销用户两步+删除用户线路

This commit is contained in:
Caiyanpeng committed 2022-07-18 17:07:02 +08:00
1 parent 68071a95f6
commit be4e741708
18 files changed
+1239 -77

No files matched your search

+7 -1
View File
@@ -237,7 +237,11 @@ namespace Assets.Scripts.Apis
return result;
}
public async Task<JsonResult<object>> DeleteRoute(int id)
{
var result = await PostAsync<JsonResult<object>>($"Map/DeleteRoute", new { id });
return result;
}
public async Task<JsonResult<List<MapRouteAreaItem>>> GetRecommendAreaList()
{
var result = await GetAsync<JsonResult<List<MapRouteAreaItem>>>($"MapRouteArea/GetRecommendAreaList");
@@ -248,6 +252,8 @@ namespace Assets.Scripts.Apis
var result = await GetAsync<JsonResult<List<Recommand>>>($"Recommand/GetList?pageIndex={pageIndex}&pageSize={pageSize}");
return result;
}
public async Task<JsonResult<List<MapRouteAreaItem>>> GetMemberMapRouteAreaList(int pageIndex, int pageSize)
{
var result = await GetAsync<JsonResult<List<MapRouteAreaItem>>>($"MapRouteArea/GetMemberMapRouteAreaList?pageIndex={pageIndex}&pageSize={pageSize}");
+8 -3
View File
@@ -84,10 +84,15 @@ namespace Assets.Scripts.Apis
return new JsonResult<UserResultModel>() { result = false, data = null, errMsg = ret.errMsg };
}
}
public async Task<JsonResult<object>> DeleteAccount(string pwd)
/// <summary>
///
/// </summary>
/// <param name="pwd"></param>
/// <param name="isFirst">false直接删除 true仅判断</param>
/// <returns></returns>
public async Task<JsonResult<object>> DeleteAccount(string pwd,bool isFirst)
{
return await PostAsync<JsonResult<object>>("User/DeleteAccount", new { pwd });
return await PostAsync<JsonResult<object>>("User/DeleteAccount", new { pwd,isFirst });
}
public async Task<JsonResult<object>> AppleCompleteInfo(string phone, string Captcha, string pwd)