### list 列出所有规则
GET http://127.0.0.1:8081/tispector/rule/list
Accept: application/json

### InitRuleTable 初始化规则表
GET http://127.0.0.1:8081/tispector/rule/initruletable
Accept: application/json

### update 更新规则
POST http://127.0.0.1:8081/tispector/rule/update
Content-Type: application/json

{"Item":"ALTER.001","Name":"injection check drop column","Close":0,"Summary":"禁止删列操作","Content":"","Level":1,"Case":"test","Position":0,"CheckFunc":"RuleAlterTableDropColumn","Threshold":"0"}

### update 更新规则
POST http://127.0.0.1:8081/tispector/rule/update
Content-Type: application/json

{"Item":"ALTER.001","Case":"test1"}


### GetRuleByItem 通过Item获取单条规则
GET http://127.0.0.1:8081/tispector/rule/getrulebyitem?item=ALTER.003
Accept: application/json

{}

### checksql 审核单条sql
POST http://127.0.0.1:8081/tispector/checksql
Content-Type: application/json

{"Content":"alter table user add foreign key(pid) references province(pId);","ClusterName":"test","DbName":"test"}

### checksqlInFile 审核sql文件
POST http://127.0.0.1:8081/tispector/checkSQLInFile
Content-Type: application/json

{"Content":"E:\\go\\src\\test.sql","ClusterName":"test","DbName":"test"}


### resetRules 重置规则文件
GET http://127.0.0.1:8081/tispector/resetRules
Accept: application/json

### cluster/list 列出所有数据库集群
GET http://192.168.10.210:8081/tispector/cluster/list
Accept: application/json


### cluster/update 更新单条集群信息
POST http://127.0.0.1:8081/tispector/cluster/update
Content-Type: application/json

{"id":2,"name":"test1","description":"test1","addr":"1.1.1.1:111","user":"test1","pwd":"test1"}

### 根据ID删除单个集群
POST http://127.0.0.1:8081/tispector/cluster/del?id=7077
Accept: application/json

{}

### cluster/add 增加单个数据库集群
POST http://127.0.0.1:8081/tispector/cluster/add
Content-Type: application/json

{"name":"test","description":"可用","addr":"192.168.10.222:31000","user":"mysql","pwd":"mysql"}

### GetClusterByName 通过Name获取单个cluster
GET http://127.0.0.1:8081/tispector/cluster/getclusterbyname?name=dbinjection
Accept: application/json

{}

### checksql 审核单条sql
POST http://127.0.0.1:8081/tispector/checksqlbyrules
Content-Type: application/json

{"Content":"DELETE t1,t2 from t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t1.id=25","ClusterName":"test","DbName":"dbinjection","RuleItems":["DML.020"]}


