/// <summary> /// 列表PageStruct /// </summary> /// <param name="code">页面唯一键</param> /// <param name="editPage">添加/修改页面地址</param> /// <param name="listAction">列表Action</param> /// <param name="deleteAction">删除Action</param> /// <returns></returns> public static PageStruct InitList(string code, string editPage,string listAction, string deleteAction="") { var p = new PageStruct { Code = code, EditPageUrl = editPage, DeleteAction = deleteAction, ListAction = listAction }; return p; }
/// <summary> /// 添加/修改PageStruct /// </summary> /// <param name="code">页面唯一键</param> /// <param name="addAction">添加action</param> /// <param name="editAction">修改action</param> /// <param name="getModelAction">获取数据Action</param> /// <returns></returns> public static PageStruct InitEdit(string code, string addAction, string editAction, string getModelAction) { var p = new PageStruct { Code = code, AddAction = addAction, EditAction = editAction, GetModelAction = getModelAction }; return p; }