BasicController.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using Abp.Runtime.Caching;
  2. using Abp.Web.Mvc.Authorization;
  3. using System.Threading.Tasks;
  4. using System.Web.Mvc;
  5. using WeApp.BaseSystem.Query;
  6. namespace WeApp.Controllers
  7. {
  8. [AbpMvcAuthorize]
  9. public class BasicController : IwbControllerBase
  10. {
  11. public BasicController(ICacheManager cacheManager, QueryAppService queryApp)
  12. {
  13. QueryApp = queryApp;
  14. CacheManager = cacheManager;
  15. }
  16. protected QueryAppService QueryApp { get; }
  17. [AbpMvcAuthorize]
  18. public ActionResult GroupRole()
  19. {
  20. return View();
  21. }
  22. [AbpMvcAuthorize]
  23. public ActionResult Role()
  24. {
  25. return View();
  26. }
  27. [AbpMvcAuthorize]
  28. public async Task<ActionResult> PortraitRemark()
  29. {
  30. ViewBag.RemarkType = await QueryApp.GetPortraitRemarkTypeSelectStr();
  31. return View();
  32. }
  33. [AbpMvcAuthorize]
  34. public async Task<ActionResult> PhoneQuestion()
  35. {
  36. ViewBag.QuestionType = await QueryApp.GetQuestionTypeSelectStr();
  37. ViewBag.AnswerType = await QueryApp.GetAnswerTypeSelectStr();
  38. return View();
  39. }
  40. [AbpMvcAuthorize]
  41. public async Task<ActionResult> PhoneAnswer()
  42. {
  43. ViewBag.AnswerType = await QueryApp.GetAnswerTypeSelectStr();
  44. return View();
  45. }
  46. [AbpMvcAuthorize]
  47. public ActionResult StudentHelp()
  48. {
  49. return View();
  50. }
  51. }
  52. }