You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Ys.Core.Common;
|
|
|
|
|
using Ys.Core.Common.Email;
|
|
|
|
|
using djy.Paas.IService;
|
|
|
|
|
using djy.Paas.Model;
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
using Hangfire;
|
|
|
|
|
namespace djy.Paas.Service
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 菜单模型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MenuListService : ServBase<tb_sys_MenuList, tb_sys_MenuList>, IMenuListService
|
|
|
|
|
{
|
|
|
|
|
public MenuListService(string dbkey = DbList.djypublicedb) : base(dbkey) { }
|
|
|
|
|
public ReturnResult<tb_sys_MenuList> GetKey(string Key)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var rs = new ReturnResult<tb_sys_MenuList>();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var menu = DbBus.Get(DbList.djypublicedb).Select<tb_sys_MenuList>().Where(w => w.Key == Key).ToOne();
|
|
|
|
|
if (menu != null)
|
|
|
|
|
{
|
|
|
|
|
rs.Data = menu;
|
|
|
|
|
rs.OK("ok");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
catch
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
return rs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|