Download the PHP package jncinet/qihucms-role without Composer
On this page you can find all versions of the php package jncinet/qihucms-role. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jncinet/qihucms-role
More information about jncinet/qihucms-role
Files in jncinet/qihucms-role
Download jncinet/qihucms-role
More information about jncinet/qihucms-role
Files in jncinet/qihucms-role
Vendor jncinet
Package qihucms-role
Short Description qihucms role.
License MIT
Homepage https://www.qihucms.com
Package qihucms-role
Short Description qihucms role.
License MIT
Homepage https://www.qihucms.com
Please rate this library. Is it a good library?
Informations about the package qihucms-role
会员权限
安装
使用
数据迁移
发布资源
添加到会员模型
删除过期权限,可以宝塔定时任务中添加运行此命令
后台菜单
- 规则
role/roles
- 权限
role/permissions
接口
所有可开通的功能
- 请求方式:GET
- 请求地址:role/roles
-
请求参数:
- 返回值:
开通功能
- 请求方式:POST
- 请求地址:role/roles
- 请求参数:{'role_id': 1, // 功能ID}
- 返回值:
权限详细说明
- 请求方式:POST
- 请求地址:role/roles/{id=功能ID}
- 返回值:
数据库
签约项目表:roles
role/roles
role/permissions
请求参数:
Field | Type | Length | AllowNull | Default | Comment |
---|---|---|---|---|---|
id | bigint | ||||
name | varchar | 255 | 签约名称 | ||
slug | varchar | 255 | 标识 | ||
desc | varchar | 255 | Y | NULL | 简介 |
times | mediumint | 0 | 有效时长 | ||
unit | enum | 'days','weeks','months','year' | days | 单位 | |
is_qualification_pa | tinyint | 0 | 个人认证? | ||
is_qualification_co | tinyint | 0 | 企业认证? | ||
currency_type_id | bigint | 0 | 货币类型 | ||
price | decimal | 0.00 | 价格 | ||
created_at | timestamp | Y | NULL | 创建时间 | |
updated_at | timestamp | Y | NULL | 更新时间 |
功能权限表:permissions
Field | Type | Length | AllowNull | Default | Comment |
---|---|---|---|---|---|
id | bigint | ||||
name | varchar | 255 | 功能名称 | ||
slug | varchar | 255 | Y | NULL | 标识 |
amount | mediumint | 0 | 数量限制 | ||
created_at | timestamp | Y | NULL | 创建时间 | |
updated_at | timestamp | Y | NULL | 更新时间 |
签约项目后拥有功能权限表:role_permissions
Field | Type | Length | AllowNull | Default | Comment |
---|---|---|---|---|---|
id | bigint | ||||
permission_id | bigint | 功能权限ID | |||
role_id | bigint | 签约项目ID | |||
created_at | timestamp | Y | NULL | 创建时间 | |
updated_at | timestamp | Y | NULL | 更新时间 |
会员己经签约的项目表:role_users
Field | Type | Length | AllowNull | Default | Comment |
---|---|---|---|---|---|
id | bigint | ||||
user_id | bigint | 会员ID | |||
role_id | bigint | 签约项目ID | |||
expires | timestamp | Y | NULL | 到期时间 | |
created_at | timestamp | Y | NULL | 创建时间 | |
updated_at | timestamp | Y | NULL | 更新时间 |
会员已经拥有的功能权限表:user_permissions
Field | Type | Length | AllowNull | Default | Comment |
---|---|---|---|---|---|
id | bigint | ||||
user_id | bigint | 会员ID | |||
permission_id | bigint | 功能权限ID | |||
expires | timestamp | Y | NULL | 到期时间 | |
created_at | timestamp | Y | NULL | 创建时间 | |
updated_at | timestamp | Y | NULL | 更新时间 |
All versions of qihucms-role with dependencies
PHP Build Version
Package Version
No informations.
The package jncinet/qihucms-role contains the following files
Loading the files please wait ....