MenuDeleteController.cs 782 B

1234567891011121314151617181920212223242526272829
  1. using JCSoft.WX.Framework.Models.ApiResponses;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using JCSoft.WX.Framework.Models.ApiRequests;
  7. using JCSoft.WX.Framework.Api;
  8. using Microsoft.AspNetCore.Mvc;
  9. using Microsoft.Extensions.Caching.Memory;
  10. namespace SupplierWeb.Controllers
  11. {
  12. [Route("api/menudelete")]
  13. public class MenuDeleteController : BaseApiController<MenuDeleteResponse>
  14. {
  15. public MenuDeleteController(IMemoryCache cache, IApiClient client) : base(cache, client)
  16. {
  17. }
  18. protected override ApiRequest<MenuDeleteResponse> GetApiRequest()
  19. {
  20. return new MenuDeleteRequest
  21. {
  22. AccessToken = AccessToken
  23. };
  24. }
  25. }
  26. }