https://github.com/iamhefang/hefang-cms-php
高性能内容管理系统
https://github.com/iamhefang/hefang-cms-php
Last synced: 3 months ago
JSON representation
高性能内容管理系统
- Host: GitHub
- URL: https://github.com/iamhefang/hefang-cms-php
- Owner: iamhefang
- License: mit
- Created: 2019-10-21T02:12:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T12:12:13.000Z (over 4 years ago)
- Last Synced: 2025-01-16T21:18:17.576Z (4 months ago)
- Language: PHP
- Size: 267 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hefang-cms-php
高性能内容管理系统## 配置项说明
1. `object`: 对象
1. `number`: 数字
1. `textarea`: 多行文本
1. `text`: 单行文本
1. `html`: HTML
1. `boolean`: 布尔
1. `image`: 图片
1. `code`: 代码
1. `checkbox`: 多选框
1. `radio`: 单选框
1. `date`: 日期
1. `datetime`: 日期时间
1. `time`: 时间
1. `range`:范围数字## query说明
字段名=值&字段名!=值|字段名~=值|字段名>值|字段名<值|字段名>=值|字段名<=值
1. `=`: 全等
1. `!=`: 不等
1. `~=`: 包含
1. `>`: 大于
1. `<`: 小于
1. `>=`: 大于等于
1. `<=`: 小于等于
1. `&`: 且
1. `|`: 或```rest
/api/content/article/list.json?query=title~=debug&(postTime>=2020-06-06|keywords=debug)
```
```sql
select * from article where title like '%debug%' and (post_time >= '2020-06-06' or keywords='debug')
```## sort 说明
```rest
/api/content/article/list.json?sort=-read_count,+oppose_count&query=title~=debug&(postTime>=2020-06-06|keywords=debug)
```
```sql
select * from article order by read_count desc, oppose_count asc
```