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
727fd84e
Commit
727fd84e
authored
Sep 23, 2016
by
庄欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ApiList
parent
20022536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
17 deletions
+53
-17
ApiList
+53
-17
No files found.
ApiList
View file @
727fd84e
- ##上传文件
- method post
- route /file/uid\d+/type\S+
参数列表:
Route::group(["prefix" => "file", 'namespace' => Provider::getNamespace("file")],function(){
uid int required 用户ID
//上传图片
type string required 上传文件的地方的标记,取值如下:
Route::post("/{uid}/{type}","File@upload");
sets 表示套系
//编辑器上传
works 表示样片
Route::post("/editor/{uid}/{action}","File@editorUpload");
banner banner
});
choice 精选
category 分类
Route::group(["prefix" => "user", 'namespace' => Provider::getNamespace("member")],function(){
ident 申请摄影师
//获取登录二维码图片
xp 选片
Route::get("/code/{code?}","User@getLoginImg");
art 攻略
//获取登录某个二维码状态
图片类型: jpg,png,大小限制为 2m
Route::get("/status/{code}","User@getLoginStatus");
//申请成为摄影师
\ No newline at end of file
Route::post("/apply","User@Apply");
//获取用户微信openid
Route::get("/openid/{platform?}","User@getOAuth");
});
Route::group(["prefix" => "article", 'namespace' => Provider::getNamespace("article")],function(){
//攻略列表
Route::get ("/" , "Article@index");
//改
Route::put ("/{id}" , "Article@update")->where(['id' => '\d+']);
//新增
Route::post("/" , "Article@store");
//详情
Route::get ("/{id}" , "Article@show")->where(['id' => '\d+']);
//关系
Route::get ("/{id}/relation/{relation}","Article@getRelate")->where(['id' => '\d+','relation'=>'\S+']);
//隐藏
Route::put ("/{id}/hidden" , "Article@hidden")->where(['id' => '\d+']);
//显示
Route::put ("/{id}/show" , "Article@display")->where(['id' => '\d+']);
});
Route::group(["prefix" => "works", 'namespace' => Provider::getNamespace("works")],function(){
//攻略列表
Route::get ("/" , "Works@index");
//改
Route::put ("/{id}" , "Works@update")->where(['id' => '\d+']);
//新增
Route::post("/" , "Works@store");
//详情
Route::get ("/{id}" , "Works@show")->where(['id' => '\d+']);
//关系
Route::get ("/{id}/relation/{relation}","Works@getRelate")->where(['id' => '\d+','relation'=>'\S+']);
//隐藏
Route::put ("/{id}/hidden" , "Works@hidden")->where(['id' => '\d+']);
//显示
Route::put ("/{id}/show" , "Works@display")->where(['id' => '\d+']);
});
\ 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