core: use Content/Name/Title to replace String

This commit is contained in:
undefined committed 2021-04-08 20:58:08 +08:00
1 parent 05968798fe
commit 2814bb51b9
15 files changed
+126 -117

No files matched your search

+4 -4
View File
@@ -178,8 +178,8 @@ class TrainingCreateHandler extends Handler {
this.response.body = { page_name: 'training_create', path };
}
@param('title', Types.String, isTitle)
@param('content', Types.String, isContent)
@param('content', Types.Title)
@param('content', Types.Content)
@param('dag', Types.String, isContent)
@param('description', Types.String, isDescription)
async post(
@@ -224,8 +224,8 @@ class TrainingEditHandler extends Handler {
}
@param('tid', Types.ObjectID)
@param('title', Types.String, isTitle)
@param('content', Types.String, isContent)
@param('content', Types.Title)
@param('content', Types.Content)
@param('dag', Types.String, isContent)
@param('description', Types.String, isDescription)
async post(