123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- $api = app("Dingo\Api\Routing\Router");
- $api->version('v1', [
- 'namespace' => 'App\Http\Controllers'
- ], function ($api) {
- $api->get('test', 'IndexController@index');
- $api->get('insert', 'IndexController@insert');
- $api->get('image_time', 'ImageClassController@image_time');
- $api->get('wechat_img', 'IndexController@wechat_img');
- $api->get('indexs', 'IndexController@indexs');
- $api->get('index', 'IndexController@index');
- $api->get('wechat', 'UserController@wechat');
- $api->get('basicinfo', 'UserController@basicinfo');
- $api->get('image_upload', 'IntegralController@image_upload');
- $api->get('token', 'IntegralController@token');
- $api->post('/wechat/message', 'WechatController@message');
- $api->get('make_sign_code','SignController@make_sign_code');
- /**登录相关**/
- $api->get('/login/send_code', 'LoginController@send_code');//发送验证码
- $api->get('/login/validator', 'LoginController@validator');//验证码手机验证码
- $api->get('/login/wechat_login', 'LoginController@wechat_login');//微信登录
- $api->post('/pay/message', 'PayController@message');
- $api->get('/pay/text', 'PayController@text');
- $api->get('/pay/pay_query', 'PayController@pay_query');
- /**发起退款**/
- $api->post('/pay/refund', 'PayController@sure_code');
- /**退款回调**/
- $api->post('/pay/send', 'PayController@refund');
- /**退款申请**/
- // $api->post('/pay/send', 'PayController@sure_code');
- $api->get('/send', 'IndexController@send');
- $api->group(['middleware' => 'refresh.token'], function ($api) {
- /**获取基本信息*/
- $api->get('/user/get_info', 'UserController@get_info');
- /**获取承诺书**/
- $api->get('user/promise_book', 'UserController@promise_book');
- /**提交承诺书**/
- $api->get('user/submit_promise', 'UserController@submit_promise');
- /**报名**/
- $api->get('pay/pay', 'PayController@pay');
- /**支付结果查询**/
- $api->get('pay/get_pay', 'PayController@get_pay');
- /**上传图片*/
- $api->post('integral/image_upload', 'IntegralController@image_upload');
- /**获取排行榜**/
- $api->get('rank/rank', 'RankController@rank');
- /**上传记录**/
- $api->get('user/upload_log', 'UserController@upload_log');
- /**报名历史*/
- $api->get('user/sign_list', 'PayController@pay_log');
- $api->get('user/get_season_log', 'PayController@get_season_log');
- /********
- * 新 增 *
- *******/
- //报名凭证
- $api->get('sign/look_sign', 'SignController@look_sign');
- $api->get('sign/get_sign_info', 'SignController@get_sign_info');
- /**确认签到**/
- $api->get('sign/sure_sign_user', 'SignController@sure_sign');
- /**生成另一种签到码**/
- $api->get('sign/make_sign_code', 'SignController@make_sign_code');
- /**填写的表单**/
- $api->get('pay/get_form', 'PayController@get_form');
- /**获取是否得到了相关信息**/
- $api->get('pay/get_basic_info', 'PayController@get_basic_info');
- /**提交表单**/
- $api->post('pay/submit_form', 'PayController@submit_form');
- /**查看已经填写的表单**/
- $api->post('pay/look_form', 'PayController@look_form');
- /**已报名的名单**/
- $api->get('enroll/get_enroll_user', 'UserController@get_enroll_user');
- /**相册内容**/
- $api->get('image/image_time', 'ImageClassController@image_time');
- /**查看某一个相册的详情**/
- $api->get('image/get_detail', 'ImageClassController@get_detail');
- /**收藏某一张图片**/
- $api->get('image/like', 'ImageClassController@like');
- /**我的收藏**/
- $api->get('image/get_like', 'ImageClassController@get_like');
- /**获取四种四种情况的人数**/
- $api->get('sign/sign_info','SignUpController@sign_info');
- /**获取每一种情况的人员列表**/
- $api->get('sign/get_sign_detail','SignUpController@get_sign_detail');
- /**获取个人的信息**/
- $api->get('sign/get_user_detail','SignUpController@get_user_detail');
- /**数据统计**/
- $api->get('data/data','IndexController@data');
- $api->get('data/count_data','IndexController@count_data');
- /**查看身份**/
- $api->get('/look/look_auth', 'UserController@look_auth');
- /*货物排名**/
- $api->get('/look/get_rank', 'UserController@get_rank');
- /***********/
- /**便 签***/
- /************/
- /**我的便签*/
- $api->get('/note/my_note_list','NoteController@my_note_list');
- /**展示便签**/
- $api->get('/note/show_note','NoteController@show_note');
- /**增加修改便签**/
- $api->post('/note/add_update_note','NoteController@add_update_note');
- $api->post('/note/upload_img','NoteController@upload_img');
- /**便签广场**/
- $api->get('/note/note_lists','NoteController@note_lists');
- /**查看评论**/
- $api->get('/note/look_comment','NoteController@look_comment');
- /**发表评论**/
- $api->post('/note/send_comment','NoteController@send_comment');
- /**回复评论**/
- $api->post('/note/reply','NoteController@reply');
- /**点赞**/
- $api->get('/note/click_heart','NoteController@click_heart');
- /**分享**/
- $api->get('/note/note_share','NoteController@note_share');
- $api->get('/note/note_share_img','NoteController@note_share_img');
- $api->group(['prefix'=>'message'],function ($api){
- //查看留言
- $api->get('look_message','MessageController@look_message');
- //管理查看留言
- $api->get('look_messages','MessageController@look_messages');
- /**删除**/
- $api->get('delete_message','MessageController@delete_message');
- /**精选留言***/
- $api->get('look_message_top','MessageController@look_message_top');
- /*这位精选**/
- $api->get('is_wonderful','MessageController@is_wonderful');
- /**这位置顶**/
- $api->get('is_top','MessageController@is_top');
- /*取消精选**/
- $api->get('cancel_wonderful','MessageController@cancel_wonderful');
- /**取消置顶**/
- $api->get('cancel_top','MessageController@cancel_top');
- //留言(☞动作)
- $api->post('message','MessageController@message');
- //回复留言
- $api->post('reply_message','MessageController@reply_message');
- $api->post('reply_message','MessageController@reply_message');
- });
- $api->group(['middleware' => 'checkauth'], function ($api) {
- /**显示核销信息**/
- $api->get('sign/get_user', 'SignController@get_user');
- /**确认核销**/
- $api->get('sign/sure_sign', 'SignController@sure_sign');
- });
- });
- $api->get('/index/note_share','NoteController@note_share');
- $api->get('/index/note_share_img','NoteController@note_share_img');
- $api->get('/index/look_message','MessageController@look_message');
- });
|