mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 20:20:34 +07:00
fix: service types
This commit is contained in:
@@ -33,8 +33,8 @@ export default class %sService implements IService<%s> {
|
|||||||
return await Create(item)
|
return await Create(item)
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(item: %s) {
|
async delete(id: number) {
|
||||||
return await Delete(item)
|
return await Delete(id)
|
||||||
}
|
}
|
||||||
async update(item: %s) {
|
async update(item: %s) {
|
||||||
return await Update(item)
|
return await Update(item)
|
||||||
@@ -42,11 +42,8 @@ export default class %sService implements IService<%s> {
|
|||||||
async count() {
|
async count() {
|
||||||
return await Count()
|
return await Count()
|
||||||
}
|
}
|
||||||
async exportToExcel() {
|
|
||||||
return await ExportToExcel()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`, utils.GetServiceBindPath(structName), structName, utils.GetServiceStructType(structName), utils.GetServiceType(), structName, structName, structName, structName, structName))
|
`, utils.GetServiceBindPath(structName), structName, utils.GetServiceStructType(structName), utils.GetServiceType(), structName, structName, structName, structName))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user