using System.Threading.Tasks; using System.Web.Mvc; using Abp.Web.Mvc.Authorization; using Abp.Runtime.Caching; using WePlatform.BaseSystem.Query; namespace WePlatform.Controllers { [AbpMvcAuthorize] public class ResourceLibController : IwbControllerBase { public QueryAppService QueryApp { get;} public ResourceLibController( ICacheManager cacheManager, QueryAppService queryApp) { QueryApp = queryApp; CacheManager = cacheManager; } #region WELib [AbpMvcAuthorize] public async Task SceneInfo() { ViewBag.Category = await QueryApp.GetCategorySelectStr(); ViewBag.Behavior = await QueryApp.GetBehaviorSelectStr(); ViewBag.Environment = await QueryApp.GetEnvironmentSelectStr(); ViewBag.SceneType = await QueryApp.GetSceneTypeStr(); ViewBag.BehaviorType = await QueryApp.GetBehaviorScoreTypeStr(); ViewBag.BehaviorType2 = QueryApp.GetBehaviorNonEvolutionTypeStr(); ViewBag.GuideType = await QueryApp.GetGuideTypeSelectStr(); return View(); } [AbpMvcAuthorize] public async Task BehaviorInfo() { ViewBag.Category = await QueryApp.GetCategorySelectStr(); ViewBag.Role = await QueryApp.GetBehaviorRoleSelectStr(); ViewBag.Knowledge = await QueryApp.GetKnowledgeSelectStr(); ViewBag.Environment = await QueryApp.GetEnvironmentSelectStr(); return View(); } [AbpMvcAuthorize] public ActionResult Plan() { return View(); } [AbpMvcAuthorize] public async Task Knowledge() { ViewBag.Plan = await QueryApp.GetPlanTreeSelectStr(); ; return View(); } [AbpMvcAuthorize] public async Task Prompt() { ViewBag.GuideType = await QueryApp.GetGuideTypeSelectStr(); return View(); } [AbpMvcAuthorize] public ActionResult Supply() { return View(); } [AbpMvcAuthorize] public async Task EnvironResourceInfo() { ViewBag.ResourceType = await QueryApp.GetResourceTypeStr(); return View(); } #endregion #region WEBASE [AbpMvcAuthorize] public ActionResult SceneCategory() { return View(); } [AbpMvcAuthorize] public async Task BehaviorRole() { ViewBag.Role = await QueryApp.GetBehaviorRoleSelectStr(); ViewBag.Category = await QueryApp.GetCategorySelectStr(); return View(); } #endregion } }