Skip to content

Commit

Permalink
fix: optimize comments in task log
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Mar 19, 2023
1 parent 5a3ed08 commit 2c985c7
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion api/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Schemes: http, https
// Host: localhost:9100
// BasePath: /
// Version: 0.2.5
// Version: 0.2.8
// Contact: yuansu.china.work@gmail.com
// SecurityDefinitions:
// Token:
Expand Down
26 changes: 13 additions & 13 deletions api/desc/task_log.api
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "base.api"

type (
// The response data of task log information | TaskLog信息
// The response data of task log information | 任务日志信息
TaskLogInfo {
// ID
Id uint64 `json:"id"`
Expand All @@ -16,23 +16,23 @@ type (
Result uint32 `json:"result,optional"`
}

// The response data of task log list | TaskLog列表数据
// The response data of task log list | 任务日志列表数据
TaskLogListResp {
BaseDataInfo

// TaskLog list data | TaskLog列表数据
// TaskLog list data | 任务日志列表数据
Data TaskLogListInfo `json:"data"`
}

// TaskLog list data | TaskLog列表数据
// TaskLog list data | 任务日志列表数据
TaskLogListInfo {
BaseListInfo

// The API list data | TaskLog列表数据
// The API list data | 任务日志列表数据
Data []TaskLogInfo `json:"data"`
}

// Get task log list request params | TaskLog列表请求参数
// Get task log list request params | 任务日志列表请求参数
TaskLogListReq {
PageInfo

Expand All @@ -41,11 +41,11 @@ type (
Result uint32 `json:"result"`
}

// TaskLog information response | TaskLog信息返回体
// TaskLog information response | 任务日志信息返回体
TaskLogInfoResp {
BaseDataInfo

// TaskLog information | TaskLog数据
// TaskLog information | 任务日志数据
Data TaskLogInfo `json:"data"`
}
)
Expand All @@ -57,23 +57,23 @@ type (
)

service core {
// Create task log information | 创建TaskLog
// Create task log information | 创建任务日志
@handler createTaskLog
post /task_log/create (TaskLogInfo) returns (BaseMsgResp)

// Update task log information | 更新TaskLog
// Update task log information | 更新任务日志
@handler updateTaskLog
post /task_log/update (TaskLogInfo) returns (BaseMsgResp)

// Delete task log information | 删除TaskLog信息
// Delete task log information | 删除任务日志信息
@handler deleteTaskLog
post /task_log/delete (IDsReq) returns (BaseMsgResp)

// Get task log list | 获取TaskLog列表
// Get task log list | 获取任务日志列表
@handler getTaskLogList
post /task_log/list (TaskLogListReq) returns (TaskLogListResp)

// Get task log by ID | 通过ID获取TaskLog
// Get task log by ID | 通过ID获取任务日志
@handler getTaskLogById
post /task_log (IDReq) returns (TaskLogInfoResp)
}
4 changes: 2 additions & 2 deletions api/internal/handler/tasklog/create_task_log_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

// swagger:route post /task_log/create tasklog CreateTaskLog
//
// Create task log information | 创建TaskLog
// Create task log information | 创建任务日志
//
// Create task log information | 创建TaskLog
// Create task log information | 创建任务日志
//
// Parameters:
// + name: body
Expand Down
4 changes: 2 additions & 2 deletions api/internal/handler/tasklog/delete_task_log_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

// swagger:route post /task_log/delete tasklog DeleteTaskLog
//
// Delete task log information | 删除TaskLog信息
// Delete task log information | 删除任务日志信息
//
// Delete task log information | 删除TaskLog信息
// Delete task log information | 删除任务日志信息
//
// Parameters:
// + name: body
Expand Down
4 changes: 2 additions & 2 deletions api/internal/handler/tasklog/get_task_log_by_id_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

// swagger:route post /task_log tasklog GetTaskLogById
//
// Get task log by ID | 通过ID获取TaskLog
// Get task log by ID | 通过ID获取任务日志
//
// Get task log by ID | 通过ID获取TaskLog
// Get task log by ID | 通过ID获取任务日志
//
// Parameters:
// + name: body
Expand Down
4 changes: 2 additions & 2 deletions api/internal/handler/tasklog/get_task_log_list_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

// swagger:route post /task_log/list tasklog GetTaskLogList
//
// Get task log list | 获取TaskLog列表
// Get task log list | 获取任务日志列表
//
// Get task log list | 获取TaskLog列表
// Get task log list | 获取任务日志列表
//
// Parameters:
// + name: body
Expand Down
4 changes: 2 additions & 2 deletions api/internal/handler/tasklog/update_task_log_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

// swagger:route post /task_log/update tasklog UpdateTaskLog
//
// Update task log information | 更新TaskLog
// Update task log information | 更新任务日志
//
// Update task log information | 更新TaskLog
// Update task log information | 更新任务日志
//
// Parameters:
// + name: body
Expand Down
16 changes: 8 additions & 8 deletions api/internal/types/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ definitions:
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TaskLogInfo:
description: The response data of task log information | TaskLog信息
description: The response data of task log information | 任务日志信息
properties:
finishedAt:
description: FinishedAt
Expand All @@ -2096,7 +2096,7 @@ definitions:
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TaskLogInfoResp:
description: TaskLog information response | TaskLog信息返回体
description: TaskLog information response | 任务日志信息返回体
properties:
code:
description: Error code | 错误代码
Expand All @@ -2115,10 +2115,10 @@ definitions:
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TaskLogListInfo:
description: TaskLog list data | TaskLog列表数据
description: TaskLog list data | 任务日志列表数据
properties:
data:
description: The API list data | TaskLog列表数据
description: The API list data | 任务日志列表数据
items:
$ref: '#/definitions/TaskLogInfo'
type: array
Expand All @@ -2131,7 +2131,7 @@ definitions:
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TaskLogListReq:
description: Get task log list request params | TaskLog列表请求参数
description: Get task log list request params | 任务日志列表请求参数
properties:
page:
description: Page number | 第几页
Expand All @@ -2158,7 +2158,7 @@ definitions:
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TaskLogListResp:
description: The response data of task log list | TaskLog列表数据
description: The response data of task log list | 任务日志列表数据
properties:
code:
description: Error code | 错误代码
Expand Down Expand Up @@ -2571,7 +2571,7 @@ info:
email: yuansu.china.work@gmail.com
description: This is simple admin api doc
title: Simple Admin
version: 0.2.5
version: 0.2.8
paths:
/api:
post:
Expand Down Expand Up @@ -3619,7 +3619,7 @@ paths:
- task
/task_log:
post:
description: Get task log by ID | 通过ID获取TaskLog
description: Get task log by ID | 通过ID获取任务日志
operationId: GetTaskLogById
parameters:
- in: body
Expand All @@ -3632,12 +3632,12 @@ paths:
description: TaskLogInfoResp
schema:
$ref: '#/definitions/TaskLogInfoResp'
summary: Get task log by ID | 通过ID获取TaskLog
summary: Get task log by ID | 通过ID获取任务日志
tags:
- tasklog
/task_log/create:
post:
description: Create task log information | 创建TaskLog
description: Create task log information | 创建任务日志
operationId: CreateTaskLog
parameters:
- in: body
Expand All @@ -3650,12 +3650,12 @@ paths:
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create task log information | 创建TaskLog
summary: Create task log information | 创建任务日志
tags:
- tasklog
/task_log/delete:
post:
description: Delete task log information | 删除TaskLog信息
description: Delete task log information | 删除任务日志信息
operationId: DeleteTaskLog
parameters:
- in: body
Expand All @@ -3668,12 +3668,12 @@ paths:
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete task log information | 删除TaskLog信息
summary: Delete task log information | 删除任务日志信息
tags:
- tasklog
/task_log/list:
post:
description: Get task log list | 获取TaskLog列表
description: Get task log list | 获取任务日志列表
operationId: GetTaskLogList
parameters:
- in: body
Expand All @@ -3686,12 +3686,12 @@ paths:
description: TaskLogListResp
schema:
$ref: '#/definitions/TaskLogListResp'
summary: Get task log list | 获取TaskLog列表
summary: Get task log list | 获取任务日志列表
tags:
- tasklog
/task_log/update:
post:
description: Update task log information | 更新TaskLog
description: Update task log information | 更新任务日志
operationId: UpdateTaskLog
parameters:
- in: body
Expand All @@ -3704,7 +3704,7 @@ paths:
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Update task log information | 更新TaskLog
summary: Update task log information | 更新任务日志
tags:
- tasklog
/token:
Expand Down

0 comments on commit 2c985c7

Please sign in to comment.