Esempio n. 1
0
        public async Task <IActionResult> ModifyIconAsync(ModifyIconForApp model)
        {
            #region 参数验证
            Check.IfNullOrZero(model.AppId);
            Check.IfNullOrZero(model.NewIcon);
            #endregion
            var userContext = await GetUserContextAsync();

            await _appServices.ModifyAppIconAsync(userContext.Id, model.AppId, model.NewIcon);

            return(Json(new ResponseModel <String>
            {
                IsSuccess = true,
                Message = "更新图标成功",
                Model = $@"{Appsetting.FileUrl}{model.NewIcon}"
            }));
        }