1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using CZFW.Framework.Model.ViewModel;
- using CZFW.MDB;
- using Microsoft.AspNetCore.Mvc;
- namespace CZFW.CMS.Web.Areas.Schema.Controllers
- {
- [Produces("application/json")]
- public class InitController : Controller
- {
- IMongoRepository _repository;
- public InitController(IMongoRepository repository)
- {
- _repository = repository;
- }
- public IActionResult Index()
- {
- return View();
- }
- public ResultModel Init()
- {
- InitNav();
- InitSysConfig();
- InitFriendLink();
- return new ResultModel();
- }
- public ResultModel InitSysTables()
- {
- var tp = _repository.AsureTableExist("schema");
- return null;
- }
- public ResultModel InitNav()
- {
- var tp = _repository.AsureTableExist("navigation");
- return null;
- }
- public ResultModel InitSysConfig()
- {
- return null;
- }
- public ResultModel InitFriendLink()
- {
- return null;
- }
- }
- }
|