Discover Packages
github.com/noxue/gocms
command
module
Version:
v0.0.0-...-60b388c
Opens a new window with list of versions in this module.
Published: Oct 17, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
gocms
说明
本项目只是不学网的一部分,全部项目组合起来构成不学网
后台API
前端界面
后台界面
SEO处理工具
网站整体架构
http://noxue.com/article/unclassified/gocms
部署
把配置文件 config.default.json 复制一份改名为 config.json,根据文件中的配置修改配置内容
编译成可执行程序,和config.json放到一个目录下就可以运行
注意 如果要上传文件,必须要配置七牛
演示地址
不学网
response error code
1000 post data error
1111 form request field is invalid
restful api (v1)
Upload Api
Article Type Api
POST /article-type add article type
DELETE /article-type/{typeName} delete article type
PUT /article-type/{typeName} update article type
GET /article-type/{typeName} get a article type
GET /article-types?word={keyword}&page={page}&size={pagesize}&sortby={fieldName}&order={asc|desc} get article types
Article Api
POST /article add article
DELETE /article/{articleName} delete article
POST /article/{articleName} add a chapter to the article
PUT /article/{articleName} update article
GET /article/{typeName}/{articleName} get a article
GET /articles?page={page}&size={pagesize}&sortby={fieldName}&order={asc|desc} get articles
GET /article/{articleName}?page={page}&size={pagesize}&sortby={fieldName}&order={asc|desc} get articles chapter
GET /article/{typeName}/{articleName}/{chapterName} get a chapter
上面接口有所改动,具体可以看main.go
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
api
Click to show internal directories.
Click to hide internal directories.