管理后台系统权限设计(数据库)
- 通过角色获取到用户
Roles-UserRoles-Users
- 通过角色获取到导航菜单
Roles-NavigationRoles-Navigations
- 通过角色获取到部门以及部门用户
Roles-RoleGroup-Groups-UserGroup-Users
- 通过角色获取到授权应用
Roles-RoleApp
Roles-UserRoles-Users
Roles-NavigationRoles-Navigations
Roles-RoleGroup-Groups-UserGroup-Users
Roles-RoleApp
NAPS2
开源免费pdf
合并成一个pdf
文档。window
与linux
系统。https://www.naps2.com/
祝所有看到此log
的朋友,2022
行大运、发大财!
.htaccess
于根目录<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
设置-->永久链接-->是否使用地址重写功能-->启用
.
注意要“强制启用”
1、templet: '<div>@{{ layui.util.toDateString(d.created_at, "yyyy-MM-dd HH:mm:ss") }}</div>'
2、templet: '<div>@{{# if(d.step_handle_way === "serial"){ }} 串行 @{{# }else{ }} 并行 @{{# } }}</div>'
getRawOriginal( )
CREATE TABLE `comment` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`topic_id` int(10) unsigned DEFAULT NULL COMMENT '主题id',
`topic_type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '1为课程,2为集会,3为商品',
`content` text COMMENT '评论内容',
`from_uid` int(10) unsigned DEFAULT NULL COMMENT '评论者id,一般为会员表的id',
`nickname` varchar(60) DEFAULT NULL COMMENT '冗余用户昵称',
`thumb_img` varchar(255) DEFAULT NULL COMMENT '冗余用户头像',
`is_top` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否置顶评论,1为置顶,0为不置顶',
`is_hot` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否为热评,1为热评',
`like_num` int(5) unsigned DEFAULT '0' COMMENT '评论被点赞的次数',
`reply_num` int(5) unsigned DEFAULT '0' COMMENT '评论被回复的次数',
`is_reply` tinyint(2) unsigned DEFAULT '0' COMMENT '是否回复',
`status` tinyint(2) unsigned NOT NULL COMMENT '评论状态,-1为删除,0为待审核,1为已发布',
`create_time` int(11) unsigned DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `topic_id` (`topic_id`) USING BTREE,
KEY `topic_type` (`topic_type`) USING BTREE,
KEY `from_id` (`from_uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8
CREATE TABLE `comment_reply` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`comment_id` int(10) unsigned DEFAULT NULL COMMENT '评论id',
`reply_type` tinyint(2) unsigned DEFAULT '1' COMMENT '1为回复评论,2为回复别人的回复',
`reply_id` int(10) unsigned DEFAULT NULL COMMENT '回复目标id,reply_type为1时,是comment_id,reply_type为2时为回复表的id',
`content` text CHARACTER SET utf8 COMMENT '回复内容',
`to_uid` int(10) unsigned DEFAULT NULL COMMENT '回复目标id',
`from_uid` int(10) unsigned DEFAULT NULL COMMENT '回复用户id',
`from_thumb_img` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '回复者的头像',
`from_nickname` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '回复者的昵称',
`create_time` int(11) unsigned DEFAULT NULL COMMENT '评论时间',
`to_nickname` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '冗余回复对象的昵称',
`is_author` tinyint(2) unsigned DEFAULT NULL COMMENT '0为普通回复,1为后台管理员回复',
PRIMARY KEY (`id`),
KEY `comment_id` (`comment_id`) USING BTREE,
KEY `from_uid` (`from_uid`) USING BTREE,
KEY `to_uid` (`to_uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8
注意:字符集是否满足需求。
转自:https://blog.csdn.net/sluckyboy/article/details/76574030
收藏:https://github.com/ar414-com/php-source-lib
转载:https://shockerli.net/post/php-awesome/