fix grammar
This commit is contained in:
@@ -21,12 +21,10 @@ interface ICommandApp<TCommand : ICommand, TKey> : IApplication {
|
||||
|
||||
var service: IService<TKey>
|
||||
|
||||
|
||||
@PostMapping
|
||||
@MethodName("添加")
|
||||
fun add(@RequestBody command: TCommand): HttpMessage {
|
||||
val msg = HttpMessage(this.service.add(command))
|
||||
return msg
|
||||
return HttpMessage(service.add(command))
|
||||
}
|
||||
|
||||
@PutMapping("/{id:.+}")
|
||||
@@ -36,7 +34,6 @@ interface ICommandApp<TCommand : ICommand, TKey> : IApplication {
|
||||
return HttpMessage()
|
||||
}
|
||||
|
||||
|
||||
@DeleteMapping("/{id:.+}")
|
||||
@MethodName("删除")
|
||||
fun remove(@PathVariable id: TKey): HttpMessage {
|
||||
|
||||
Reference in New Issue
Block a user