/// <summary> /// 轮播图文--修改 /// </summary> /// <param name="data"></param> /// <returns></returns> public async Task UpdateDataAsync(MiniComponentSwiperDTO data) { data.Image = data.Image.Replace(ConfigHelper.GetValue("FastDFS:FileRootUrl"), ""); await UpdateAsync(data); }
/// <summary> /// 新建轮播图 /// </summary> /// <param name="data"></param> /// <returns></returns> public async Task AddDataAsync(MiniComponentSwiperDTO data) { await InsertAsync(_mapper.Map <mini_component_swiper>(data)); }