Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminApi4Tpl
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminApi4Tpl
Commits
e570c843
Commit
e570c843
authored
Sep 26, 2016
by
庄欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ApiList
parent
47ecf988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
+25
-1
ApiList
+25
-1
No files found.
ApiList
View file @
e570c843
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
列表数据查询规则:要按某种条件进行查询,只需要在URL中拼接 字段=条件 ,即可,如查询被禁用的,为&is_del=1。标题默认为LIKE查询,API限制了查询字段的范围
列表数据查询规则:要按某种条件进行查询,只需要在URL中拼接 字段=条件 ,即可,如查询被禁用的,为&is_del=1。标题默认为LIKE查询,API限制了查询字段的范围
详情数据查询关联:查询某个对象的关联对象如套系,使用sets/{id}/relation/关联1,关联2,如ID为2的关键字和分类 /sets/2/relation/keywords,category
详情数据查询关联:查询某个对象的关联对象如套系,使用sets/{id}/relation/关联1,关联2,如ID为2的关键字和分类 /sets/2/relation/keywords,category
Route::group(["prefix" => "file", 'namespace' => Provider::getNamespace("file")],function(){
Route::group(["prefix" => "file", 'namespace' => Provider::getNamespace("file")],function(){
//上传图片
//上传图片
Route::post("/{uid}/{type}","File@upload");
Route::post("/{uid}/{type}","File@upload");
...
@@ -20,6 +21,8 @@ Route::group(["prefix" => "user", 'namespace' => Provider::getNamespace("member"
...
@@ -20,6 +21,8 @@ Route::group(["prefix" => "user", 'namespace' => Provider::getNamespace("member"
Route::post("/apply","User@Apply");
Route::post("/apply","User@Apply");
//获取用户微信openid
//获取用户微信openid
Route::get("/openid/{platform?}","User@getOAuth");
Route::get("/openid/{platform?}","User@getOAuth");
//模糊搜索用户 支持使用mobile=?或nickname=? 方式,?表示字符串
Route::get("/search","User@search");
});
});
...
@@ -41,7 +44,7 @@ Route::group(["prefix" => "article", 'namespace' => Provider::getNamespace("arti
...
@@ -41,7 +44,7 @@ Route::group(["prefix" => "article", 'namespace' => Provider::getNamespace("arti
});
});
Route::group(["prefix" => "works", 'namespace' => Provider::getNamespace("works")],function(){
Route::group(["prefix" => "works", 'namespace' => Provider::getNamespace("works")],function(){
//
样片
列表
//
攻略
列表
Route::get ("/" , "Works@index");
Route::get ("/" , "Works@index");
//改
//改
Route::put ("/{id}" , "Works@update")->where(['id' => '\d+']);
Route::put ("/{id}" , "Works@update")->where(['id' => '\d+']);
...
@@ -55,4 +58,24 @@ Route::group(["prefix" => "works", 'namespace' => Provider::getNamespace("works"
...
@@ -55,4 +58,24 @@ Route::group(["prefix" => "works", 'namespace' => Provider::getNamespace("works"
Route::put ("/{id}/hidden" , "Works@hidden")->where(['id' => '\d+']);
Route::put ("/{id}/hidden" , "Works@hidden")->where(['id' => '\d+']);
//显示
//显示
Route::put ("/{id}/show" , "Works@display")->where(['id' => '\d+']);
Route::put ("/{id}/show" , "Works@display")->where(['id' => '\d+']);
});
Route::group(["prefix" => "keywords", 'namespace' => Provider::getNamespace("keywords")],function(){
//全部关键词
Route::get ("/" , "Keywords@index");
//热门关键词
Route::get ("/hot" , "Keywords@gethot");
});
Route::group(["prefix" => "photo", 'namespace' => Provider::getNamespace("photo")],function(){
//全部选片
Route::get ("/" , "Photo@index");
//新建
Route::post("/" , "Photo@store");
//添加照片
Route::post("/{id}" , "Photo@images");
//删除照片
Route::delete("/{id}/{ids}","Photo@image");
});
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment