Kaynağa Gözat

同步生成app配置部分代码

lichunlei 7 ay önce
ebeveyn
işleme
60902fa994

+ 109 - 0
Controllers/Admin/AppProjectBottom/AppProjectBottomController.cs

@@ -0,0 +1,109 @@
+using Vo;
+using Microsoft.AspNetCore.Mvc;
+using Model;
+using Services;
+using Model.Base;
+using Vo.Admin;
+using Mapster;
+using Infrastructure;
+
+
+namespace Controllers.Admin
+{
+    /// <summary>
+    /// AppProjectBottom)Controller
+    /// </summary>
+    // [Route("${Router}$")]
+    // [ApiExplorerSettings(GroupName = "AppProjectBottom")]
+    public class AppProjectBottomController : BaseController
+    {
+        /// <summary>
+        /// api分组接口
+        /// </summary>
+        private readonly IAppProjectBottomService _AppProjectBottomService;
+
+
+        public AppProjectBottomController(IAppProjectBottomService AppProjectBottomService)
+        {
+            _AppProjectBottomService = AppProjectBottomService;
+
+        }
+
+          /// <param name="page">分页参数</param>
+        /// <summary>
+        /// 列表
+        /// </summary>
+        /// <param name="page">分页对象</param>
+        /// <param name="param">参数请求体</param>
+        /// <returns>列表</returns>
+        [HttpGet]
+        [Route("/v1/omega_source/AppProjectBottom/getAppProjectBottomList")]
+        public IActionResult getAppProjectBottomList([FromQuery] PagerInfo page, [FromQuery] AppProjectBottom param)
+        {
+            var response = _AppProjectBottomService.getAppProjectBottomList(page, param);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 详情
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>详情</returns>
+        [HttpGet]
+        [Route("/v1/omega_source/AppProjectBottom/getAppProjectBottomQuery")]
+        public IActionResult getAppProjectBottomQuery([FromQuery] AppProjectBottom param)
+        {
+            var response = _AppProjectBottomService.GetFirst(m => m.id == param.id).Adapt<GetAppProjectBottomQueryVo>();
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 添加
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>添加</returns>
+        [HttpPost]
+        [Route("/v1/omega_source/AppProjectBottom/addAppProjectBottom")]
+        public IActionResult addAppProjectBottom([FromBody] AppProjectBottom param)
+        {
+            var modal = param.Adapt<AppProjectBottom>().ToCreate(HttpContext);
+            var response = _AppProjectBottomService.InsertReturnIdentity(modal);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 修改
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>修改</returns>
+        [HttpPut]
+        [Route("/v1/omega_source/AppProjectBottom/updateAppProjectBottom")]
+        public IActionResult updateAppProjectBottom([FromBody] AppProjectBottom param)
+        {
+            var modal = param.Adapt<AppProjectBottom>().ToCreate(HttpContext);
+            var response = _AppProjectBottomService.Update(modal, true);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 删除
+        /// </summary>
+        /// <param name="id">ID</param>
+        /// <returns>删除</returns>
+        [HttpDelete]
+        [Route("/v1/omega_source/AppProjectBottom/deleteAppProjectBottom/{id}")]
+        public IActionResult deleteAppProjectBottom(int id)
+        {
+            var response = _AppProjectBottomService.Delete(id);
+            return SUCCESS(response);
+        }
+
+
+
+
+    }
+}

+ 109 - 0
Controllers/Admin/AppProjectPage/AppProjectPageController.cs

@@ -0,0 +1,109 @@
+using Vo;
+using Microsoft.AspNetCore.Mvc;
+using Model;
+using Services;
+using Model.Base;
+using Vo.Admin;
+using Mapster;
+using Infrastructure;
+
+
+namespace Controllers.Admin
+{
+    /// <summary>
+    /// AppProjectPage)Controller
+    /// </summary>
+    // [Route("${Router}$")]
+    // [ApiExplorerSettings(GroupName = "AppProjectPage")]
+    public class AppProjectPageController : BaseController
+    {
+        /// <summary>
+        /// api分组接口
+        /// </summary>
+        private readonly IAppProjectPageService _AppProjectPageService;
+
+
+        public AppProjectPageController(IAppProjectPageService AppProjectPageService)
+        {
+            _AppProjectPageService = AppProjectPageService;
+
+        }
+
+          /// <param name="page">分页参数</param>
+        /// <summary>
+        /// 列表
+        /// </summary>
+        /// <param name="page">分页对象</param>
+        /// <param name="param">参数请求体</param>
+        /// <returns>列表</returns>
+        [HttpGet]
+        [Route("/v1/omega_source/AppProjectPage/getAppProjectPageList")]
+        public IActionResult getAppProjectPageList([FromQuery] PagerInfo page, [FromQuery] AppProjectPage param)
+        {
+            var response = _AppProjectPageService.getAppProjectPageList(page, param);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 详情
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>详情</returns>
+        [HttpGet]
+        [Route("/v1/omega_source/AppProjectPage/getAppProjectPageQuery")]
+        public IActionResult getAppProjectPageQuery([FromQuery] AppProjectPage param)
+        {
+            var response = _AppProjectPageService.GetFirst(m => m.id == param.id).Adapt<GetAppProjectPageQueryVo>();
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 添加
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>添加</returns>
+        [HttpPost]
+        [Route("/v1/omega_source/AppProjectPage/addAppProjectPage")]
+        public IActionResult addAppProjectPage([FromBody] AppProjectPage param)
+        {
+            var modal = param.Adapt<AppProjectPage>().ToCreate(HttpContext);
+            var response = _AppProjectPageService.InsertReturnIdentity(modal);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 修改
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>修改</returns>
+        [HttpPut]
+        [Route("/v1/omega_source/AppProjectPage/updateAppProjectPage")]
+        public IActionResult updateAppProjectPage([FromBody] AppProjectPage param)
+        {
+            var modal = param.Adapt<AppProjectPage>().ToCreate(HttpContext);
+            var response = _AppProjectPageService.Update(modal, true);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 删除
+        /// </summary>
+        /// <param name="id">ID</param>
+        /// <returns>删除</returns>
+        [HttpDelete]
+        [Route("/v1/omega_source/AppProjectPage/deleteAppProjectPage/{id}")]
+        public IActionResult deleteAppProjectPage(int id)
+        {
+            var response = _AppProjectPageService.Delete(id);
+            return SUCCESS(response);
+        }
+
+
+
+
+    }
+}

+ 109 - 0
Controllers/Admin/AppProjectStatic/AppProjectStaticController.cs

@@ -0,0 +1,109 @@
+using Vo;
+using Microsoft.AspNetCore.Mvc;
+using Model;
+using Services;
+using Model.Base;
+using Vo.Admin;
+using Mapster;
+using Infrastructure;
+
+
+namespace Controllers.Admin
+{
+    /// <summary>
+    /// AppProjectStatic)Controller
+    /// </summary>
+    // [Route("${Router}$")]
+    // [ApiExplorerSettings(GroupName = "AppProjectStatic")]
+    public class AppProjectStaticController : BaseController
+    {
+        /// <summary>
+        /// api分组接口
+        /// </summary>
+        private readonly IAppProjectStaticService _AppProjectStaticService;
+
+
+        public AppProjectStaticController(IAppProjectStaticService AppProjectStaticService)
+        {
+            _AppProjectStaticService = AppProjectStaticService;
+
+        }
+
+          /// <param name="page">分页参数</param>
+        /// <summary>
+        /// 列表
+        /// </summary>
+        /// <param name="page">分页对象</param>
+        /// <param name="param">参数请求体</param>
+        /// <returns>列表</returns>
+        [HttpGet]
+        [Route("/v1/omega_source/AppProjectStatic/getAppProjectStaticList")]
+        public IActionResult getAppProjectStaticList([FromQuery] PagerInfo page, [FromQuery] AppProjectStatic param)
+        {
+            var response = _AppProjectStaticService.getAppProjectStaticList(page, param);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 详情
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>详情</returns>
+        [HttpGet]
+        [Route("/v1/omega_source/AppProjectStatic/getAppProjectStaticQuery")]
+        public IActionResult getAppProjectStaticQuery([FromQuery] AppProjectStatic param)
+        {
+            var response = _AppProjectStaticService.GetFirst(m => m.id == param.id).Adapt<GetAppProjectStaticQueryVo>();
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 添加
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>添加</returns>
+        [HttpPost]
+        [Route("/v1/omega_source/AppProjectStatic/addAppProjectStatic")]
+        public IActionResult addAppProjectStatic([FromBody] AppProjectStatic param)
+        {
+            var modal = param.Adapt<AppProjectStatic>().ToCreate(HttpContext);
+            var response = _AppProjectStaticService.InsertReturnIdentity(modal);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 修改
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>修改</returns>
+        [HttpPut]
+        [Route("/v1/omega_source/AppProjectStatic/updateAppProjectStatic")]
+        public IActionResult updateAppProjectStatic([FromBody] AppProjectStatic param)
+        {
+            var modal = param.Adapt<AppProjectStatic>().ToCreate(HttpContext);
+            var response = _AppProjectStaticService.Update(modal, true);
+            return SUCCESS(response);
+        }
+
+
+        /// <summary>
+        /// 删除
+        /// </summary>
+        /// <param name="id">ID</param>
+        /// <returns>删除</returns>
+        [HttpDelete]
+        [Route("/v1/omega_source/AppProjectStatic/deleteAppProjectStatic/{id}")]
+        public IActionResult deleteAppProjectStatic(int id)
+        {
+            var response = _AppProjectStaticService.Delete(id);
+            return SUCCESS(response);
+        }
+
+
+
+
+    }
+}

+ 190 - 0
Model/Database/AppProjectBottom.cs

@@ -0,0 +1,190 @@
+using Mapster;
+
+
+namespace Model
+{
+    /// <summary>
+    /// APP底部导航 app_project_bottom
+    /// </summary>
+    [SugarTable("app_project_bottom", "APP底部导航")]
+    [Tenant("0")]
+    public class AppProjectBottom
+    {
+        /// <summary>
+        /// 标题
+        /// </summary>
+        [SugarColumn(ColumnDescription = "标题", Length = 10, ColumnName = "title")]
+        public string? title { get; set; }
+
+
+        /// <summary>
+        /// 选中图标
+        /// </summary>
+        [SugarColumn(ColumnDescription = "选中图标", Length = 200, ColumnName = "select_icon")]
+        public string? selectIcon { get; set; }
+
+
+        /// <summary>
+        /// 未选中图标
+        /// </summary>
+        [SugarColumn(ColumnDescription = "未选中图标", Length = 200, ColumnName = "normal_icon")]
+        public string? normalIcon { get; set; }
+
+
+        /// <summary>
+        /// 选中文字颜色
+        /// </summary>
+        [SugarColumn(ColumnDescription = "选中文字颜色", Length = 6, ColumnName = "select_text_color")]
+        public string? selectTextColor { get; set; }
+
+
+        /// <summary>
+        /// 未选中文字颜色
+        /// </summary>
+        [SugarColumn(ColumnDescription = "未选中文字颜色", Length = 6, ColumnName = "normal_text_color")]
+        public string? normalTextColor { get; set; }
+
+
+        /// <summary>
+        /// 关联页面文件
+        /// </summary>
+        [SugarColumn(ColumnDescription = "关联页面文件", Length = 50, ColumnName = "page_name")]
+        public string? pageName { get; set; }
+
+
+        /// <summary>
+        /// 空页面提示信息
+        /// </summary>
+        [SugarColumn(ColumnDescription = "空页面提示信息", Length = 50, ColumnName = "no_page_hint")]
+        public string? noPageHint { get; set; }
+
+
+        /// <summary>
+        /// 背景色
+        /// </summary>
+        [SugarColumn(ColumnDescription = "背景色", Length = 6, ColumnName = "backgroud_color")]
+        public string? backgroudColor { get; set; }
+
+
+        /// <summary>
+        /// 按钮样式
+        /// </summary>
+        [SugarColumn(ColumnDescription = "按钮样式", Length = 30, ColumnName = "style")]
+        public string? style { get; set; }
+
+
+        /// <summary>
+        /// 滚动图片
+        /// </summary>
+        [SugarColumn(ColumnDescription = "滚动图片", Length = 300, ColumnName = "scroller_animation_images")]
+        public string? scrollerAnimationImages { get; set; }
+
+
+        /// <summary>
+        /// PAG文件
+        /// </summary>
+        [SugarColumn(ColumnDescription = "PAG文件", Length = 200, ColumnName = "pag_path")]
+        public string? pagPath { get; set; }
+
+
+        /// <summary>
+        /// 是否显示标题
+        /// </summary>
+        [SugarColumn(ColumnDescription = "是否显示标题", ColumnName = "show_title")]
+        public bool showTitle { get; set; }
+
+
+        /// <summary>
+        /// pag文件路径
+        /// </summary>
+        [SugarColumn(ColumnDescription = "pag文件路径", Length = 200, ColumnName = "pag_local_path")]
+        public string? pagLocalPath { get; set; }
+
+
+        /// <summary>
+        /// pag默认图标
+        /// </summary>
+        [SugarColumn(ColumnDescription = "pag默认图标", Length = 200, ColumnName = "pag_default_icon")]
+        public string? pagDefaultIcon { get; set; }
+
+
+        /// <summary>
+        /// 图标尺寸
+        /// </summary>
+        [SugarColumn(ColumnDescription = "图标尺寸", ColumnName = "icon_size")]
+        public int iconSize { get; set; }
+
+
+        /// <summary>
+        /// 状态栏底色
+        /// </summary>
+        [SugarColumn(ColumnDescription = "状态栏底色", Length = 50, ColumnName = "status_bar_color")]
+        public string? statusBarColor { get; set; }
+
+
+        /// <summary>
+        /// ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "ID", IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
+        public int id { get; set; }
+
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [SugarColumn(ColumnDescription = "状态", ColumnName = "status")]
+        public int status { get; set; }
+
+
+        /// <summary>
+        /// 排序
+        /// </summary>
+        [SugarColumn(ColumnDescription = "排序", ColumnName = "sort")]
+        public int sort { get; set; }
+
+
+        /// <summary>
+        /// 版本号
+        /// </summary>
+        [SugarColumn(ColumnDescription = "版本号", ColumnName = "version")]
+        public int version { get; set; }
+
+
+        /// <summary>
+        /// 创建时间
+        /// </summary>
+        [SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_date")]
+        public DateTime? createDate { get; set; }
+
+
+        /// <summary>
+        /// 更新时间
+        /// </summary>
+        [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_date")]
+        public DateTime? updateDate { get; set; }
+
+
+        /// <summary>
+        /// 是否PAG
+        /// </summary>
+        [SugarColumn(ColumnDescription = "是否PAG", ColumnName = "pag_flag")]
+        public bool pagFlag { get; set; }
+
+
+        /// <summary>
+        /// 版本ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "版本ID", ColumnName = "version_id")]
+        public int versionId { get; set; }
+
+
+        /// <summary>
+        /// APP项目ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "APP项目ID", ColumnName = "app_id")]
+        public int appId { get; set; }
+
+
+
+    }
+}

+ 197 - 0
Model/Database/AppProjectPage.cs

@@ -0,0 +1,197 @@
+using Mapster;
+
+
+namespace Model
+{
+    /// <summary>
+    /// APP页面模板 app_project_page
+    /// </summary>
+    [SugarTable("app_project_page", "APP页面模板")]
+    [Tenant("0")]
+    public class AppProjectPage
+    {
+        /// <summary>
+        /// 模板更新版本
+        /// </summary>
+        [SugarColumn(ColumnDescription = "模板更新版本", ColumnName = "module_version")]
+        public int moduleVersion { get; set; }
+
+
+        /// <summary>
+        /// 是否读取网页标题
+        /// </summary>
+        [SugarColumn(ColumnDescription = "是否读取网页标题", ColumnName = "web_title")]
+        public bool webTitle { get; set; }
+
+
+        /// <summary>
+        /// 分类
+        /// </summary>
+        [SugarColumn(ColumnDescription = "分类", Length = 50, ColumnName = "kind")]
+        public string? kind { get; set; }
+
+
+        /// <summary>
+        /// 更新时间
+        /// </summary>
+        [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_date")]
+        public DateTime? updateDate { get; set; }
+
+
+        /// <summary>
+        /// 创建时间
+        /// </summary>
+        [SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_date")]
+        public DateTime? createDate { get; set; }
+
+
+        /// <summary>
+        /// 版本号
+        /// </summary>
+        [SugarColumn(ColumnDescription = "版本号", ColumnName = "version")]
+        public int version { get; set; }
+
+
+        /// <summary>
+        /// 排序
+        /// </summary>
+        [SugarColumn(ColumnDescription = "排序", ColumnName = "sort")]
+        public int sort { get; set; }
+
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [SugarColumn(ColumnDescription = "状态", ColumnName = "status")]
+        public int status { get; set; }
+
+
+        /// <summary>
+        /// ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "ID", IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
+        public int id { get; set; }
+
+
+        /// <summary>
+        /// 页面强制更新
+        /// </summary>
+        [SugarColumn(ColumnDescription = "页面强制更新", ColumnName = "must_update")]
+        public bool mustUpdate { get; set; }
+
+
+        /// <summary>
+        /// 下级页面
+        /// </summary>
+        [SugarColumn(ColumnDescription = "下级页面", Length = 500, ColumnName = "goto_pages")]
+        public string? gotoPages { get; set; }
+
+
+        /// <summary>
+        /// 版本ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "版本ID", ColumnName = "version_id")]
+        public int versionId { get; set; }
+
+
+        /// <summary>
+        /// 右侧侧按钮
+        /// </summary>
+        [SugarColumn(ColumnDescription = "右侧侧按钮", Length = 500, ColumnName = "right_btn")]
+        public BtnItem? rightBtn { get; set; }
+
+
+        /// <summary>
+        /// 左侧按钮
+        /// </summary>
+        [SugarColumn(ColumnDescription = "左侧按钮", Length = 500, ColumnName = "left_btn")]
+        public BtnItem? leftBtn { get; set; }
+
+
+        /// <summary>
+        /// 手势侧滑返回
+        /// </summary>
+        [SugarColumn(ColumnDescription = "手势侧滑返回", ColumnName = "skid_flag")]
+        public bool skidFlag { get; set; }
+
+
+        /// <summary>
+        /// 页面滚动条
+        /// </summary>
+        [SugarColumn(ColumnDescription = "页面滚动条", ColumnName = "show_scroll_bar")]
+        public bool showScrollBar { get; set; }
+
+
+        /// <summary>
+        /// 顶部标题
+        /// </summary>
+        [SugarColumn(ColumnDescription = "顶部标题", Length = 50, ColumnName = "title")]
+        public string? title { get; set; }
+
+
+        /// <summary>
+        /// 显示头部
+        /// </summary>
+        [SugarColumn(ColumnDescription = "显示头部", ColumnName = "show_title")]
+        public bool showTitle { get; set; }
+
+
+        /// <summary>
+        /// 苹果状态栏
+        /// </summary>
+        [SugarColumn(ColumnDescription = "苹果状态栏", Length = 10, ColumnName = "status_bar_style")]
+        public string? statusBarStyle { get; set; }
+
+
+        /// <summary>
+        /// 前景色
+        /// </summary>
+        [SugarColumn(ColumnDescription = "前景色", Length = 6, ColumnName = "text_color")]
+        public string? textColor { get; set; }
+
+
+        /// <summary>
+        /// 背景色
+        /// </summary>
+        [SugarColumn(ColumnDescription = "背景色", Length = 6, ColumnName = "backgroud_color")]
+        public string? backgroudColor { get; set; }
+
+
+        /// <summary>
+        /// 页面路径
+        /// </summary>
+        [SugarColumn(ColumnDescription = "页面路径", Length = 200, ColumnName = "module_path")]
+        public string? modulePath { get; set; }
+
+
+        /// <summary>
+        /// APP项目ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "APP项目ID", ColumnName = "app_id")]
+        public int appId { get; set; }
+
+
+        /// <summary>
+        /// 顶部标题位置
+        /// </summary>
+        [SugarColumn(ColumnDescription = "顶部标题位置", Length = 10, ColumnName = "title_position")]
+        public string? titlePosition { get; set; }
+
+
+        /// <summary>
+        /// 页面文件
+        /// </summary>
+        [SugarColumn(ColumnDescription = "页面文件", Length = 200, ColumnName = "module_file")]
+        public string? moduleFile { get; set; }
+
+
+
+    }
+
+    public class BtnItem
+    {
+        public string? btnText { get; set; }
+        public string? btnTcon { get; set; }
+        public string? btnAction { get; set; }
+    }
+}

+ 106 - 0
Model/Database/AppProjectStatic.cs

@@ -0,0 +1,106 @@
+using Mapster;
+
+
+namespace Model
+{
+    /// <summary>
+    /// APP静态资源 app_project_static
+    /// </summary>
+    [SugarTable("app_project_static", "APP静态资源")]
+    [Tenant("0")]
+    public class AppProjectStatic
+    {
+        /// <summary>
+        /// 更新版本
+        /// </summary>
+        [SugarColumn(ColumnDescription = "更新版本", ColumnName = "version_num")]
+        public int versionNum { get; set; }
+
+
+        /// <summary>
+        /// 文件路径
+        /// </summary>
+        [SugarColumn(ColumnDescription = "文件路径", Length = 200, ColumnName = "file_path")]
+        public string? filePath { get; set; }
+
+
+        /// <summary>
+        /// 文件名
+        /// </summary>
+        [SugarColumn(ColumnDescription = "文件名", Length = 50, ColumnName = "file_name")]
+        public string? fileName { get; set; }
+
+
+        /// <summary>
+        /// ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "ID", IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
+        public int id { get; set; }
+
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [SugarColumn(ColumnDescription = "状态", ColumnName = "status")]
+        public int status { get; set; }
+
+
+        /// <summary>
+        /// 排序
+        /// </summary>
+        [SugarColumn(ColumnDescription = "排序", ColumnName = "sort")]
+        public int sort { get; set; }
+
+
+        /// <summary>
+        /// 版本号
+        /// </summary>
+        [SugarColumn(ColumnDescription = "版本号", ColumnName = "version")]
+        public int version { get; set; }
+
+
+        /// <summary>
+        /// 创建时间
+        /// </summary>
+        [SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_date")]
+        public DateTime? createDate { get; set; }
+
+
+        /// <summary>
+        /// 更新时间
+        /// </summary>
+        [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_date")]
+        public DateTime? updateDate { get; set; }
+
+
+        /// <summary>
+        /// 版本ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "版本ID", ColumnName = "version_id")]
+        public int versionId { get; set; }
+
+
+        /// <summary>
+        /// APP项目ID
+        /// </summary>
+        [SugarColumn(ColumnDescription = "APP项目ID", ColumnName = "app_id")]
+        public int appId { get; set; }
+
+
+        /// <summary>
+        /// 文件大小
+        /// </summary>
+        [SugarColumn(ColumnDescription = "文件大小", ColumnName = "file_size")]
+        public int fileSize { get; set; }
+
+
+        /// <summary>
+        /// 文件类型
+        /// </summary>
+        [SugarColumn(ColumnDescription = "文件类型", Length = 20, ColumnName = "file_type")]
+        public string? fileType { get; set; }
+
+
+
+    }
+}

+ 120 - 0
Model/Vo/Admin/GetAppProjectBottomListVo.cs

@@ -0,0 +1,120 @@
+using Newtonsoft.Json;
+
+namespace Vo.Admin
+{
+    /// <summary>
+    /// 列表
+    /// </summary>
+    public class GetAppProjectBottomListVo
+    {
+        /// <summary>
+        /// 标题
+        /// </summary>
+        public string title { get; set; }
+
+
+        /// <summary>
+        /// 选中图标
+        /// </summary>
+        public string selectIcon { get; set; }
+
+
+        /// <summary>
+        /// 未选中图标
+        /// </summary>
+        public string normalIcon { get; set; }
+
+
+        /// <summary>
+        /// 选中文字颜色
+        /// </summary>
+        public string selectTextColor { get; set; }
+
+
+        /// <summary>
+        /// 未选中文字颜色
+        /// </summary>
+        public string normalTextColor { get; set; }
+
+
+        /// <summary>
+        /// 关联页面文件
+        /// </summary>
+        public string pageName { get; set; }
+
+
+        /// <summary>
+        /// 空页面提示信息
+        /// </summary>
+        public string noPageHint { get; set; }
+
+
+        /// <summary>
+        /// 背景色
+        /// </summary>
+        public string backgroudColor { get; set; }
+
+
+        /// <summary>
+        /// 按钮样式
+        /// </summary>
+        public string style { get; set; }
+
+
+        /// <summary>
+        /// 滚动图片
+        /// </summary>
+        public string scrollerAnimationImages { get; set; }
+
+
+        /// <summary>
+        /// PAG文件
+        /// </summary>
+        public string pagPath { get; set; }
+
+
+        /// <summary>
+        /// 是否显示标题
+        /// </summary>
+        public bool showTitle { get; set; }
+
+
+        /// <summary>
+        /// pag文件路径
+        /// </summary>
+        public string pagLocalPath { get; set; }
+
+
+        /// <summary>
+        /// pag默认图标
+        /// </summary>
+        public string pagDefaultIcon { get; set; }
+
+
+        /// <summary>
+        /// 图标尺寸
+        /// </summary>
+        public int iconSize { get; set; }
+
+
+        /// <summary>
+        /// 状态栏底色
+        /// </summary>
+        public string statusBarColor { get; set; }
+
+
+        /// <summary>
+        /// ID
+        /// </summary>
+        public int id { get; set; }
+
+
+        /// <summary>
+        /// 是否PAG
+        /// </summary>
+        public bool pagFlag { get; set; }
+
+
+
+    }
+}

+ 126 - 0
Model/Vo/Admin/GetAppProjectBottomQueryVo.cs

@@ -0,0 +1,126 @@
+using Newtonsoft.Json;
+
+namespace Vo.Admin
+{
+    /// <summary>
+    /// 详情
+    /// </summary>
+    public class GetAppProjectBottomQueryVo
+    {
+        /// <summary>
+        /// 标题
+        /// </summary>
+        public string title { get; set; }
+
+
+        /// <summary>
+        /// 选中图标
+        /// </summary>
+        public string selectIcon { get; set; }
+
+
+        /// <summary>
+        /// 未选中图标
+        /// </summary>
+        public string normalIcon { get; set; }
+
+
+        /// <summary>
+        /// 选中文字颜色
+        /// </summary>
+        public string selectTextColor { get; set; }
+
+
+        /// <summary>
+        /// 未选中文字颜色
+        /// </summary>
+        public string normalTextColor { get; set; }
+
+
+        /// <summary>
+        /// 关联页面文件
+        /// </summary>
+        public string pageName { get; set; }
+
+
+        /// <summary>
+        /// 空页面提示信息
+        /// </summary>
+        public string noPageHint { get; set; }
+
+
+        /// <summary>
+        /// 背景色
+        /// </summary>
+        public string backgroudColor { get; set; }
+
+
+        /// <summary>
+        /// 按钮样式
+        /// </summary>
+        public string style { get; set; }
+
+
+        /// <summary>
+        /// 滚动图片
+        /// </summary>
+        public string scrollerAnimationImages { get; set; }
+
+
+        /// <summary>
+        /// PAG文件
+        /// </summary>
+        public string pagPath { get; set; }
+
+
+        /// <summary>
+        /// 是否显示标题
+        /// </summary>
+        public bool showTitle { get; set; }
+
+
+        /// <summary>
+        /// pag文件路径
+        /// </summary>
+        public string pagLocalPath { get; set; }
+
+
+        /// <summary>
+        /// pag默认图标
+        /// </summary>
+        public string pagDefaultIcon { get; set; }
+
+
+        /// <summary>
+        /// 图标尺寸
+        /// </summary>
+        public int iconSize { get; set; }
+
+
+        /// <summary>
+        /// 状态栏底色
+        /// </summary>
+        public string statusBarColor { get; set; }
+
+
+        /// <summary>
+        /// 是否PAG
+        /// </summary>
+        public bool pagFlag { get; set; }
+
+
+        /// <summary>
+        /// 版本ID
+        /// </summary>
+        public int versionId { get; set; }
+
+
+        /// <summary>
+        /// APP项目ID
+        /// </summary>
+        public int appId { get; set; }
+
+
+
+    }
+}

+ 24 - 0
Model/Vo/Admin/GetAppProjectPageListVo.cs

@@ -0,0 +1,24 @@
+using Newtonsoft.Json;
+
+namespace Vo.Admin
+{
+    /// <summary>
+    /// 列表
+    /// </summary>
+    public class GetAppProjectPageListVo
+    {
+        /// <summary>
+        /// 顶部标题
+        /// </summary>
+        public string title { get; set; }
+
+
+        /// <summary>
+        /// 页面路径
+        /// </summary>
+        public string modulePath { get; set; }
+
+
+
+    }
+}

+ 126 - 0
Model/Vo/Admin/GetAppProjectPageQueryVo.cs

@@ -0,0 +1,126 @@
+using Newtonsoft.Json;
+
+namespace Vo.Admin
+{
+    /// <summary>
+    /// 详情
+    /// </summary>
+    public class GetAppProjectPageQueryVo
+    {
+        /// <summary>
+        /// 模板更新版本
+        /// </summary>
+        public int moduleVersion { get; set; }
+
+
+        /// <summary>
+        /// 是否读取网页标题
+        /// </summary>
+        public bool webTitle { get; set; }
+
+
+        /// <summary>
+        /// 页面强制更新
+        /// </summary>
+        public bool mustUpdate { get; set; }
+
+
+        /// <summary>
+        /// 下级页面
+        /// </summary>
+        public string gotoPages { get; set; }
+
+
+        /// <summary>
+        /// 版本ID
+        /// </summary>
+        public int versionId { get; set; }
+
+
+        /// <summary>
+        /// 右侧侧按钮
+        /// </summary>
+        public string rightBtn { get; set; }
+
+
+        /// <summary>
+        /// 左侧按钮
+        /// </summary>
+        public string leftBtn { get; set; }
+
+
+        /// <summary>
+        /// 手势侧滑返回
+        /// </summary>
+        public bool skidFlag { get; set; }
+
+
+        /// <summary>
+        /// 页面滚动条
+        /// </summary>
+        public bool showScrollBar { get; set; }
+
+
+        /// <summary>
+        /// 顶部标题
+        /// </summary>
+        public string title { get; set; }
+
+
+        /// <summary>
+        /// 显示头部
+        /// </summary>
+        public bool showTitle { get; set; }
+
+
+        /// <summary>
+        /// 苹果状态栏
+        /// </summary>
+        public string statusBarStyle { get; set; }
+
+
+        /// <summary>
+        /// 前景色
+        /// </summary>
+        public string textColor { get; set; }
+
+
+        /// <summary>
+        /// 背景色
+        /// </summary>
+        public string backgroudColor { get; set; }
+
+
+        /// <summary>
+        /// 页面路径
+        /// </summary>
+        public string modulePath { get; set; }
+
+
+        /// <summary>
+        /// APP项目ID
+        /// </summary>
+        public int appId { get; set; }
+
+
+        /// <summary>
+        /// 顶部标题位置
+        /// </summary>
+        public string titlePosition { get; set; }
+
+
+        /// <summary>
+        /// 页面文件
+        /// </summary>
+        public string moduleFile { get; set; }
+
+
+        /// <summary>
+        /// 页面内容
+        /// </summary>
+        public string moduleContent { get; set; }
+
+
+
+    }
+}

+ 36 - 0
Model/Vo/Admin/GetAppProjectStaticListVo.cs

@@ -0,0 +1,36 @@
+using Newtonsoft.Json;
+
+namespace Vo.Admin
+{
+    /// <summary>
+    /// 列表
+    /// </summary>
+    public class GetAppProjectStaticListVo
+    {
+        /// <summary>
+        /// 更新版本
+        /// </summary>
+        public int versionNum { get; set; }
+
+
+        /// <summary>
+        /// 文件路径
+        /// </summary>
+        public string filePath { get; set; }
+
+
+        /// <summary>
+        /// 文件名
+        /// </summary>
+        public string fileName { get; set; }
+
+
+        /// <summary>
+        /// 文件大小
+        /// </summary>
+        public int fileSize { get; set; }
+
+
+
+    }
+}

+ 42 - 0
Model/Vo/Admin/GetAppProjectStaticQueryVo.cs

@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+
+namespace Vo.Admin
+{
+    /// <summary>
+    /// 详情
+    /// </summary>
+    public class GetAppProjectStaticQueryVo
+    {
+        /// <summary>
+        /// 更新版本
+        /// </summary>
+        public int versionNum { get; set; }
+
+
+        /// <summary>
+        /// 文件路径
+        /// </summary>
+        public string filePath { get; set; }
+
+
+        /// <summary>
+        /// 文件名
+        /// </summary>
+        public string fileName { get; set; }
+
+
+        /// <summary>
+        /// 文件大小
+        /// </summary>
+        public int fileSize { get; set; }
+
+
+        /// <summary>
+        /// 文件类型
+        /// </summary>
+        public string fileType { get; set; }
+
+
+
+    }
+}

+ 40 - 0
Services/AppProjectBottomService.cs

@@ -0,0 +1,40 @@
+using Attribute;
+using Model;
+using Model.Base;
+using Repository;
+using Service;
+using Microsoft.AspNetCore.Mvc;
+using Vo.Admin;
+
+
+namespace Services
+{
+    /// <summary>
+    /// APP底部导航Service业务层处理
+    /// </summary>
+    [AppService(ServiceType = typeof(IAppProjectBottomService), ServiceLifetime = LifeTime.Transient)]
+    public class AppProjectBottomService : BaseService<AppProjectBottom>, IAppProjectBottomService
+    {
+        /// <summary>
+        /// APP底部导航-列表
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <param name="page">分页参数</param>
+        /// <returns>列表</returns>
+        public PagedInfo<GetAppProjectBottomListVo> getAppProjectBottomList([FromQuery] PagerInfo page, [FromQuery] AppProjectBottom param)
+        {
+            //拼装查询条件
+            var predicate = Expressionable.Create<AppProjectBottom>();
+            predicate = predicate.AndIF(param.versionId > 0, m => m.versionId == param.versionId);
+            predicate = predicate.AndIF(param.appId > 0, m => m.appId == param.appId);
+            var response = Queryable()
+                .Where(predicate.ToExpression())
+                .OrderByDescending(m => m.id)
+                .ToPage<AppProjectBottom, GetAppProjectBottomListVo>(page);
+            return response;
+        }
+
+
+
+    }
+}

+ 40 - 0
Services/AppProjectPageService.cs

@@ -0,0 +1,40 @@
+using Attribute;
+using Model;
+using Model.Base;
+using Repository;
+using Service;
+using Microsoft.AspNetCore.Mvc;
+using Vo.Admin;
+
+
+namespace Services
+{
+    /// <summary>
+    /// APP页面模板Service业务层处理
+    /// </summary>
+    [AppService(ServiceType = typeof(IAppProjectPageService), ServiceLifetime = LifeTime.Transient)]
+    public class AppProjectPageService : BaseService<AppProjectPage>, IAppProjectPageService
+    {
+        /// <summary>
+        /// APP页面模板-列表
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <param name="page">分页参数</param>
+        /// <returns>列表</returns>
+        public PagedInfo<GetAppProjectPageListVo> getAppProjectPageList([FromQuery] PagerInfo page, [FromQuery] AppProjectPage param)
+        {
+            //拼装查询条件
+            var predicate = Expressionable.Create<AppProjectPage>();
+            predicate = predicate.AndIF(param.versionId > 0, m => m.versionId == param.versionId);
+            predicate = predicate.AndIF(param.appId > 0, m => m.appId == param.appId);
+            var response = Queryable()
+                .Where(predicate.ToExpression())
+                .OrderByDescending(m => m.id)
+                .ToPage<AppProjectPage, GetAppProjectPageListVo>(page);
+            return response;
+        }
+
+
+
+    }
+}

+ 41 - 0
Services/AppProjectStaticService.cs

@@ -0,0 +1,41 @@
+using Attribute;
+using Model;
+using Model.Base;
+using Repository;
+using Service;
+using Microsoft.AspNetCore.Mvc;
+using Vo.Admin;
+
+
+namespace Services
+{
+    /// <summary>
+    /// APP静态资源Service业务层处理
+    /// </summary>
+    [AppService(ServiceType = typeof(IAppProjectStaticService), ServiceLifetime = LifeTime.Transient)]
+    public class AppProjectStaticService : BaseService<AppProjectStatic>, IAppProjectStaticService
+    {
+        /// <summary>
+        /// APP静态资源-列表
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <param name="page">分页参数</param>
+        /// <returns>列表</returns>
+        public PagedInfo<GetAppProjectStaticListVo> getAppProjectStaticList([FromQuery] PagerInfo page, [FromQuery] AppProjectStatic param)
+        {
+            //拼装查询条件
+            var predicate = Expressionable.Create<AppProjectStatic>();
+            predicate = predicate.AndIF(param.versionId > 0, m => m.versionId == param.versionId);
+            predicate = predicate.AndIF(param.appId > 0, m => m.appId == param.appId);
+            predicate = predicate.AndIF(!string.IsNullOrEmpty(param.fileType), m => m.fileType.Contains(param.fileType));
+            var response = Queryable()
+                .Where(predicate.ToExpression())
+                .OrderByDescending(m => m.id)
+                .ToPage<AppProjectStatic, GetAppProjectStaticListVo>(page);
+            return response;
+        }
+
+
+
+    }
+}

+ 22 - 0
Services/IService/IAppProjectBottomService.cs

@@ -0,0 +1,22 @@
+using Model;
+using Model.Base;
+using Microsoft.AspNetCore.Mvc;
+using Vo.Admin;
+
+
+namespace Services
+{
+    public interface IAppProjectBottomService : IBaseService<AppProjectBottom>
+    {
+        /// <summary>
+        /// APP底部导航-列表
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <param name="page">分页参数</param>
+        /// <returns>列表</returns>
+        PagedInfo<GetAppProjectBottomListVo> getAppProjectBottomList([FromQuery] PagerInfo page, [FromQuery] AppProjectBottom param);
+
+
+
+    }
+}

+ 22 - 0
Services/IService/IAppProjectPageService.cs

@@ -0,0 +1,22 @@
+using Model;
+using Model.Base;
+using Microsoft.AspNetCore.Mvc;
+using Vo.Admin;
+
+
+namespace Services
+{
+    public interface IAppProjectPageService : IBaseService<AppProjectPage>
+    {
+        /// <summary>
+        /// APP页面模板-列表
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <param name="page">分页参数</param>
+        /// <returns>列表</returns>
+        PagedInfo<GetAppProjectPageListVo> getAppProjectPageList([FromQuery] PagerInfo page, [FromQuery] AppProjectPage param);
+
+
+
+    }
+}

+ 22 - 0
Services/IService/IAppProjectStaticService.cs

@@ -0,0 +1,22 @@
+using Model;
+using Model.Base;
+using Microsoft.AspNetCore.Mvc;
+using Vo.Admin;
+
+
+namespace Services
+{
+    public interface IAppProjectStaticService : IBaseService<AppProjectStatic>
+    {
+        /// <summary>
+        /// APP静态资源-列表
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <param name="page">分页参数</param>
+        /// <returns>列表</returns>
+        PagedInfo<GetAppProjectStaticListVo> getAppProjectStaticList([FromQuery] PagerInfo page, [FromQuery] AppProjectStatic param);
+
+
+
+    }
+}