Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edenleung committed Mar 23, 2021
1 parent 774aacb commit c59f5d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 120 deletions.
112 changes: 0 additions & 112 deletions extend/Crud/Controller.php

This file was deleted.

4 changes: 1 addition & 3 deletions extend/Crud/CrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

namespace Crud;

use TAnt\Abstracts\AbstractController;

abstract class CrudController extends AbstractController
trait CrudController
{
public function index()
{
Expand Down
10 changes: 5 additions & 5 deletions extend/TAnt/Command/Crud/stubs/controller.stub
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ use Crud\CrudController;
use think\annotation\Inject;
use app\common\service\{%service%};

class {%className%} extends CrudController
class {%className%}
{
use CrudController;

/**
* @Inject
* @var {%service%}
*/
protected $service;

protected $validates = [
'create' => [
],
'update' => [
]
'create' => [],
'update' => []
];
}

1 comment on commit c59f5d3

@vercel
Copy link

@vercel vercel bot commented on c59f5d3 Mar 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.