You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

65 lines
2.1 KiB

  1. using BPA.KitChen.GroupMeal.Application.BaseDto;
  2. using BPA.KitChen.GroupMeal.Application.Service.Device.Dtos;
  3. using BPA.KitChen.GroupMeal.Application.Service.Device.Services;
  4. using Furion.DynamicApiController;
  5. using Microsoft.AspNetCore.Mvc;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace BPA.SAAS.KitChenManage.Application.Device
  12. {
  13. [ApiDescriptionSettings("DevicePushRecode", Tag = "设备下发")]
  14. public class DevicePushRecodeServices: IDynamicApiController
  15. {
  16. IDevicePushRecodeService _devicePushRecodeService;
  17. public DevicePushRecodeServices(IDevicePushRecodeService devicePushRecodeService)
  18. {
  19. _devicePushRecodeService= devicePushRecodeService;
  20. }
  21. /// <summary>
  22. /// 分页
  23. /// </summary>
  24. /// <param name="input"></param>
  25. /// <returns></returns>
  26. [HttpPost("/api/devicepushrecode/page")]
  27. public async Task<PageUtil> Page(DevicePushRecodeDtoPageInput input)
  28. {
  29. return await _devicePushRecodeService.Page(input);
  30. }
  31. /// <summary>
  32. /// 添加
  33. /// </summary>
  34. /// <param name="input"></param>
  35. /// <returns></returns>
  36. [HttpPost("/api/devicepushrecode/add")]
  37. public async Task<bool> Add(DevicePushRecodeDtoInput input)
  38. {
  39. return await _devicePushRecodeService.Add(input);
  40. }
  41. /// <summary>
  42. /// 修改
  43. /// </summary>
  44. /// <param name="id"></param>
  45. /// <returns></returns>
  46. [HttpGet("/api/devicepushrecode/update")]
  47. public async Task<bool> Update(string id)
  48. {
  49. return await _devicePushRecodeService.Update(id);
  50. }
  51. /// <summary>
  52. /// 删除
  53. /// </summary>
  54. /// <param name="input"></param>
  55. /// <returns></returns>
  56. [HttpPost("/api/devicepushrecode/delete")]
  57. public async Task<bool> Delete(List<string> input)
  58. {
  59. return await _devicePushRecodeService.Delete(input);
  60. }
  61. }
  62. }