|
@@ -18,24 +18,6 @@ class BeanDetailController extends Controller
|
|
$this->beanRepository = $beanRepository;
|
|
$this->beanRepository = $beanRepository;
|
|
}
|
|
}
|
|
|
|
|
|
- //获取指定时间彩虹豆收支明细
|
|
|
|
- public function beanDetail(Request $request)
|
|
|
|
- {
|
|
|
|
- $validator = Validator::make($request->all(), [
|
|
|
|
- 'type' => ['required',Rule::in([0,1,2,3])],
|
|
|
|
- ]);
|
|
|
|
- if ($validator->fails()) {
|
|
|
|
- return $this->jsonError($validator->errors()->first());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- $beanDetail = $this->beanRepository->beanDetail($request->all());
|
|
|
|
- if ($beanDetail){
|
|
|
|
- return $this->jsonSuccess($beanDetail);
|
|
|
|
- }else{
|
|
|
|
- return $this->jsonSuccess();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
//排行榜
|
|
//排行榜
|
|
public function rankingList(Request $request)
|
|
public function rankingList(Request $request)
|
|
{
|
|
{
|