MenuQueryController.cs 770 B

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