简化配置数据的架构,只保存一行,方便理解和维护
大石头 authored at 2021-11-28 08:20:46
863.00 B
Stardust
using NewLife.Cube;
using Stardust.Data.Configs;

namespace Stardust.Web.Areas.Configs.Controllers
{
    [ConfigsArea]
    public class AppRuleController : EntityController<AppRule>
    {
        static AppRuleController()
        {
            LogOnChange = true;

            {
                var df = ListFields.AddListField("Log", "CreateUserID");
                df.DisplayName = "修改日志";
                df.Header = "修改日志";
                df.Url = "/Admin/Log?category=应用规则&linkId={Id}";
            }
        }

        //protected override IEnumerable<AppRule> Search(Pager p)
        //{
        //    var appId = p["appId"].ToInt(-1);

        //    var start = p["dtStart"].ToDateTime();
        //    var end = p["dtEnd"].ToDateTime();

        //    return AppRule.Search(appId, start, end, p["Q"], p);
        //}
    }
}