服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-08-26 ce47e1a46da2b1191faace70d8d8a64d6f400bf9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Tiger.Model
{
    public class MenuItem : MenuNoChildren
    {
        public List<MenuItem> children { get; set; }
        public string status { get; set; }
        public string parentMenu { get; set; }
        public string menuName { get; set; }
        public string icon { get; set; }
        public string func_type { get; set; }
        public string func_group { get; set; }
        public int? orderNo { get; set; }
        public string func_code { get; set; }
        public string keepalive { get; set; }
        public string show { get; set; }
        public string url { get; set; }
        public string pages { get; set; }
    }
 
    public class MenuNoChildren
    {
        public string id { get; set; }
        public string path { get; set; }
        public string component { get; set; }
        public RouteMeta meta { get; set; }
        public string name { get; set; }
        public string alias { get; set; }
        public string redirect { get; set; }
        public bool? caseSensitive { get; set; }
        public DateTime? createTime { get; set; }
        public int btnType { get; set; }
        public string doMethod { get; set; }
    }
 
    public class RouteMeta {
        public int? orderNo { get; set; }
        // title
        public string title { get; set; }
        // dynamic router level.
        public int? dynamicLevel { get; set; }
        // dynamic router real route path (For performance).
        public string realPath { get; set; }
        // Whether to ignore permissions
        public bool? ignoreAuth { get; set; }
        // role info
        //public string roles?: RoleEnum[];
        // Whether not to cache
        public bool? ignoreKeepAlive { get; set; }
        // Is it fixed on tab
        public bool? affix { get; set; }
        // icon on tab
        public string icon { get; set; }
        public string frameSrc { get; set; }
        // current page transition
        public string transitionName { get; set; }
        // Whether the route has been dynamically added
        public bool? hideBreadcrumb { get; set; }
        // Hide submenu
        public bool? hideChildrenInMenu { get; set; }
        // Carrying parameters
        public bool? carryParam { get; set; }
        // Used internally to mark single-level menus
        public bool? single { get; set; }
        // Currently active menu
        public string currentActiveMenu { get; set; }
        // Never show in tab
        public string hideTab { get; set; }
        // Never bool in menu
        public bool? hideMenu { get; set; }
        public bool? showMenu { get; set; }
        public bool? isLink { get; set; }
        // only build for Menu
        public bool? ignoreRoute { get; set; }
        // Hide path for children
        public bool? hidePathForChildren { get; set; }
        public string menuId { get; set; }
        public string menuCode { get; set; }
        public int btnType { get; set; }
        public string doMethod { get; set; }
    }
 
    public class SaveMenuParams
    {
        public string id { get; set; }
        public int? orderNo { get; set; }
        // menuName
        public string menuName { get; set; }
        public string path { get; set; }
        public string component { get; set; }
        public string parentMenu { get; set; }
        public string icon { get; set; }
        public string status { get; set; }
        public string isExt { get; set; }
        public bool isUpdate { get; set; }
        public string show { get; set; }
        public string func_type { get; set; }
        public string func_class { get; set; }
        public string keepalive { get; set; }
        public int btnType { get; set; }
        public string doMethod { get; set; }
    }
}