|
|
@@ -31,6 +31,28 @@ Route::any('wechat/serve', 'wechat.WechatController/serve');//公众号服务
|
|
|
Route::any('wechat/notify', 'wechat.WechatController/notify');//公众号支付回调
|
|
|
Route::any('routine/notify', 'wechat.AuthController/notify');//小程序支付回调
|
|
|
|
|
|
+/**
|
|
|
+ * 消息类 api, 需要权限, 暂时为测试
|
|
|
+ */
|
|
|
+Route::get('user/notifications', 'user.UserNotificationController/snapshot')->name('userNotifications');
|
|
|
+
|
|
|
+Route::get('user/messages', 'user.UserNoticeController/messages')->name('userMessages');
|
|
|
+Route::post('user/messages', 'user.UserNoticeController/read')->name('userRead');
|
|
|
+Route::post('user/message/del', 'user.UserNoticeController/del')->name('userDel');
|
|
|
+/**
|
|
|
+ * 挖矿类 api
|
|
|
+ */
|
|
|
+Route::post('coin/boot', 'coin.UserCoinController/boot')->name('coinBoot');
|
|
|
+Route::get('coin/history', 'coin.UserCoinController/history')->name('coinHistory');
|
|
|
+Route::post('coin/addr', 'coin.UserCoinController/updateAddr')->name('coinUpdateAddr');
|
|
|
+Route::post('coin/transfer', 'coin.UserCoinController/transfer')->name('coinTransfer');
|
|
|
+// TODO 当前 coin 余额显示到钱包
|
|
|
+
|
|
|
+/**
|
|
|
+ * 排行榜 api
|
|
|
+ */
|
|
|
+Route::get('boards', 'boards.UserBoardsController/boards')->name('boards');
|
|
|
+
|
|
|
//管理员订单操作类
|
|
|
Route::group(function () {
|
|
|
Route::get('admin/order/statistics', 'admin.StoreOrderController/statistics')->name('adminOrderStatistics');//订单数据统计
|