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> var service: IService<TKey>
@PostMapping @PostMapping
@MethodName("添加") @MethodName("添加")
fun add(@RequestBody command: TCommand): HttpMessage { fun add(@RequestBody command: TCommand): HttpMessage {
val msg = HttpMessage(this.service.add(command)) return HttpMessage(service.add(command))
return msg
} }
@PutMapping("/{id:.+}") @PutMapping("/{id:.+}")
@@ -36,7 +34,6 @@ interface ICommandApp<TCommand : ICommand, TKey> : IApplication {
return HttpMessage() return HttpMessage()
} }
@DeleteMapping("/{id:.+}") @DeleteMapping("/{id:.+}")
@MethodName("删除") @MethodName("删除")
fun remove(@PathVariable id: TKey): HttpMessage { fun remove(@PathVariable id: TKey): HttpMessage {