Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CocaineCong/TodoList
/ functions
Functions
64 in github.com/CocaineCong/TodoList
⨍
Functions
64
◇
Types & classes
25
↓ 16 callers
Function
ErrorResponse
ErrorResponse 返回错误信息
api/common.go:15
↓ 6 callers
Function
GetTaskSrv
()
service/task.go:21
↓ 6 callers
Function
GetUserInfo
(ctx context.Context)
pkg/ctl/user_info.go:16
↓ 6 callers
Function
NewTaskDao
(ctx context.Context)
repository/db/dao/task.go:16
↓ 5 callers
Function
GetMsg
GetMsg 获取状态码对应信息
pkg/e/msg.go:20
↓ 4 callers
Function
RespSuccess
RespSuccess 成功返回
pkg/ctl/ctl.go:47
↓ 3 callers
Function
NewUserDao
(ctx context.Context)
repository/db/dao/user.go:15
↓ 3 callers
Function
RespError
RespError 错误返回
pkg/ctl/ctl.go:79
↓ 3 callers
Method
View
()
repository/db/model/task.go:23
↓ 2 callers
Method
FindTaskByIdAndUserId
FindTaskByIdAndUserId 通过id和user_id找到task
repository/db/dao/task.go:39
↓ 2 callers
Method
FindUserByUserName
FindUserByUserName 根据用户名找到用户
repository/db/dao/user.go:23
↓ 2 callers
Function
GetUserSrv
()
service/user.go:23
↓ 2 callers
Function
NewDBClient
(ctx context.Context)
repository/db/dao/init.go:51
↓ 2 callers
Method
Register
(ctx context.Context, req *types.UserServiceReq)
service/user.go:30
↓ 2 callers
Function
RespList
RespList 带有总数的列表构建器
pkg/ctl/ctl.go:35
↓ 2 callers
Function
RespSuccessWithData
RespSuccessWithData 带data成功返回
pkg/ctl/ctl.go:63
↓ 2 callers
Function
TaskViewKey
TaskViewKey 点击数的key
repository/cache/key.go:13
↓ 2 callers
Function
setOutputFile
()
pkg/util/logger.go:36
↓ 1 callers
Method
AddView
AddView
repository/db/model/task.go:31
↓ 1 callers
Method
CheckPassword
CheckPassword 校验密码
repository/db/model/user.go:31
↓ 1 callers
Function
Cors
跨域
middleware/cors.go:12
↓ 1 callers
Method
CreateTask
(ctx context.Context, req *types.CreateTaskReq)
service/task.go:28
↓ 1 callers
Function
CreateTaskHandler
CreateTaskHandler @Tags TASK @Summary 创建任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.CreateTaskServi
api/task.go:23
↓ 1 callers
Method
CreateUser
CreateUser 创建User
repository/db/dao/user.go:39
↓ 1 callers
Method
DeleteTask
(ctx context.Context, req *types.DeleteTaskReq)
service/task.go:108
↓ 1 callers
Method
DeleteTaskById
DeleteTaskById 通过id删除
repository/db/dao/task.go:83
↓ 1 callers
Function
DeleteTaskHandler
DeleteTaskHandler @Tags TASK @Summary 删除任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.DeleteTaskServi
api/task.go:113
↓ 1 callers
Method
FindUserByUserId
FindUserByUserId 根据用户id找到用户
repository/db/dao/user.go:31
↓ 1 callers
Function
FromContext
(ctx context.Context)
pkg/ctl/user_info.go:28
↓ 1 callers
Function
GenerateToken
GenerateToken 签发用户Token
pkg/util/jwt.go:20
↓ 1 callers
Function
InitLog
()
pkg/util/logger.go:14
↓ 1 callers
Function
JWT
JWT token验证中间件
middleware/jwt.go:15
↓ 1 callers
Method
ListTask
(ctx context.Context, req *types.ListTasksReq)
service/task.go:55
↓ 1 callers
Function
ListTaskHandler
ListTaskHandler @Tags TASK @Summary 获取任务列表 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.ListTasksServic
api/task.go:52
↓ 1 callers
Function
LoadLocales
LoadLocales 读取国际化文件
config/i18n.go:14
↓ 1 callers
Function
LoadMysqlData
(file *ini.File)
config/conf.go:45
↓ 1 callers
Function
LoadRedis
(file *ini.File)
config/conf.go:54
↓ 1 callers
Function
LoadServer
(file *ini.File)
config/conf.go:40
↓ 1 callers
Method
Login
Login 用户登陆函数
service/user.go:59
↓ 1 callers
Function
MySQLInit
()
repository/db/dao/init.go:19
↓ 1 callers
Function
NewContext
(ctx context.Context, u *UserInfo)
pkg/ctl/user_info.go:24
↓ 1 callers
Function
NewRouter
NewRouter 路由配置
routes/routes.go:16
↓ 1 callers
Function
ParseToken
ParseToken 验证用户token
pkg/util/jwt.go:38
↓ 1 callers
Function
Redis
初始化redis链接
repository/cache/common.go:15
↓ 1 callers
Method
SearchTask
(ctx context.Context, req *types.SearchTaskReq)
service/task.go:137
↓ 1 callers
Function
SearchTaskHandler
SearchTaskHandler @Tags TASK @Summary 查询任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.DeleteTaskServi
api/task.go:171
↓ 1 callers
Method
SetPassword
SetPassword 设置密码
repository/db/model/user.go:21
↓ 1 callers
Method
ShowTask
ShowTask 展示Task作用
service/task.go:83
↓ 1 callers
Function
ShowTaskHandler
ShowTaskHandler @Tags TASK @Summary 展示任务详细信息 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.ShowTaskServi
api/task.go:84
↓ 1 callers
Method
UpdateTask
(ctx context.Context, req *types.UpdateTaskReq)
service/task.go:123
↓ 1 callers
Function
UpdateTaskHandler
UpdateTaskHandler @Tags TASK @Summary 修改任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.DeleteTaskServi
api/task.go:142
↓ 1 callers
Function
UserLoginHandler
UserLoginHandler @Tags USER @Summary 用户登录 @Produce json @Accept json @Param data body service.UserService true "user_name, password
api/user.go:49
↓ 1 callers
Function
UserRegisterHandler
UserRegisterHandler @Tags USER @Summary 用户注册 @Produce json @Accept json @Param data body service.UserService true "用户名, 密码" @Success 200 {object} seri
api/user.go:21
↓ 1 callers
Function
loading
()
cmd/main.go:23
↓ 1 callers
Function
migration
执行数据迁移
repository/db/dao/migration.go:8
Method
CreateTask
CreateTask 创建Task
repository/db/dao/task.go:24
Function
Init
()
config/conf.go:25
Method
ListTask
ListTask List Task的情况
repository/db/dao/task.go:29
Method
ReadDoc
()
docs/docs.go:525
Method
SearchTask
SearchTask 搜索Task
repository/db/dao/task.go:69
Function
T
T 翻译
config/i18n.go:29
Method
UpdateTask
UpdateTask 修改
repository/db/dao/task.go:46
Function
init
()
docs/docs.go:554
Function
main
@title ToDoList API @version 0.0.1 @description This is a sample Server pets @name FanOne @BasePath /api/v1
cmd/main.go:16