|
@@ -21,20 +21,44 @@ namespace GxPress.Api.AdminControllers
|
|
|
{
|
|
|
this.vipEquityRepository = vipEquityRepository;
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 获取列表
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
[HttpGet]
|
|
|
public async Task<IEnumerable<VipEquityResult>> GetAllAsync()
|
|
|
{
|
|
|
return await vipEquityRepository.GetAllAsync();
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 修改
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
[HttpPut]
|
|
|
public async Task<bool> UpdateAsync(VipEquityUpdateRequest request)
|
|
|
{
|
|
|
return await vipEquityRepository.UpdateAsync(request);
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 添加
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="model"></param>
|
|
|
+ /// <returns></returns>
|
|
|
[HttpPost]
|
|
|
public async Task<bool> InsertAsync(Entity.tede2.VipEquity.VipEquity model)
|
|
|
{
|
|
|
return await vipEquityRepository.InsertAsync(model);
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 根据ID删除
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="id"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpDelete("{id}")]
|
|
|
+ public async Task<bool> DeleteAsync(int id)
|
|
|
+ {
|
|
|
+ return await vipEquityRepository.DeleteAsync(id);
|
|
|
+ }
|
|
|
}
|
|
|
}
|