fix grammar
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user