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.

DevicePushRecodeServices.cs 2.1 KiB

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