This commit is contained in:
parent
6766f4d920
commit
4c6f979db5
25
ReadMe.md
25
ReadMe.md
|
@ -19,4 +19,27 @@
|
||||||
```
|
```
|
||||||
### 查询:
|
### 查询:
|
||||||

|

|
||||||
#### WebApi:`localhost:5242/api/query?key={handle}`
|
#### WebApi:`localhost:5242/api/query?key={handle}`
|
||||||
|
|
||||||
|
### 删除:
|
||||||
|
```csharp
|
||||||
|
[HttpGet]
|
||||||
|
[Route("delete")]
|
||||||
|
public async Task<bool> Delete (string handle)
|
||||||
|
{
|
||||||
|
await _service.DeleteAsync(handle);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
#### WebApi:`localhost:5242/api/delete?handle={handle}`
|
||||||
|
|
||||||
|
### 检查标识码是否存在
|
||||||
|
```csharp
|
||||||
|
[HttpGet]
|
||||||
|
[Route("isExist")]
|
||||||
|
public async Task<bool> IsExist(string key)
|
||||||
|
{
|
||||||
|
return await _service.IsExistAsync(key);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
#### WebApi:`localhost:5242/api/isExist?key={key}`
|
Loading…
Reference in New Issue