Skip to content

Commit 12be361

Browse files
committed
refactor: #72 remove useless code
1 parent 8832a71 commit 12be361

File tree

5 files changed

+2
-235
lines changed

5 files changed

+2
-235
lines changed

app/Commands/IssueImportCommand.php

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class IssueImportCommand extends Command
2121
*/
2222
protected $signature = 'issue:import
2323
{file : 文件(支持格式:csv)}
24-
{--type= : 类型(使用英文),如 DEFECT(缺陷)、REQUIREMENT(需求)、MISSION(任务)、EPIC(史诗)、SUB_TASK(子任务)}
2524
{--coding_token= : CODING 令牌}
2625
{--coding_team_domain= : CODING 团队域名,如 xxx.coding.net 即填写 xxx}
2726
{--coding_project_uri= : CODING 项目标识,如 xxx.coding.net/p/yyy 即填写 yyy}

app/Models/Issue.php

+1-17
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,8 @@
22

33
namespace App\Models;
44

5-
use Illuminate\Database\Eloquent\Factories\HasFactory;
6-
use Illuminate\Database\Eloquent\Model;
7-
8-
class Issue extends Model
5+
class Issue
96
{
10-
use HasFactory;
11-
12-
/**
13-
* The attributes that are mass assignable.
14-
*
15-
* @var array
16-
*/
17-
protected $fillable = [
18-
'type',
19-
'name',
20-
'priority',
21-
];
22-
237
public const PRIORITY_MAP = [
248
'' => '0',
259
'' => '1',

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"ext-json": "*",
2323
"ext-libxml": "*",
2424
"ext-zip": "*",
25-
"illuminate/database": "^8.40",
2625
"illuminate/log": "^8.0",
2726
"laravel-fans/confluence": "^0.1.1",
2827
"laravel-zero/framework": "^8.8",

composer.lock

+1-69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/database.php

-147
This file was deleted.

0 commit comments

Comments
 (0)