fix grammar

This commit is contained in:
2022-03-14 10:18:07 +08:00
parent 30b88714d2
commit 230648426e

View File

@@ -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 {