MCPcopy Create free account

hub / github.com/CocaineCong/TodoList / functions

Functions64 in github.com/CocaineCong/TodoList

↓ 16 callersFunctionErrorResponse
ErrorResponse 返回错误信息
api/common.go:15
↓ 6 callersFunctionGetTaskSrv
()
service/task.go:21
↓ 6 callersFunctionGetUserInfo
(ctx context.Context)
pkg/ctl/user_info.go:16
↓ 6 callersFunctionNewTaskDao
(ctx context.Context)
repository/db/dao/task.go:16
↓ 5 callersFunctionGetMsg
GetMsg 获取状态码对应信息
pkg/e/msg.go:20
↓ 4 callersFunctionRespSuccess
RespSuccess 成功返回
pkg/ctl/ctl.go:47
↓ 3 callersFunctionNewUserDao
(ctx context.Context)
repository/db/dao/user.go:15
↓ 3 callersFunctionRespError
RespError 错误返回
pkg/ctl/ctl.go:79
↓ 3 callersMethodView
()
repository/db/model/task.go:23
↓ 2 callersMethodFindTaskByIdAndUserId
FindTaskByIdAndUserId 通过id和user_id找到task
repository/db/dao/task.go:39
↓ 2 callersMethodFindUserByUserName
FindUserByUserName 根据用户名找到用户
repository/db/dao/user.go:23
↓ 2 callersFunctionGetUserSrv
()
service/user.go:23
↓ 2 callersFunctionNewDBClient
(ctx context.Context)
repository/db/dao/init.go:51
↓ 2 callersMethodRegister
(ctx context.Context, req *types.UserServiceReq)
service/user.go:30
↓ 2 callersFunctionRespList
RespList 带有总数的列表构建器
pkg/ctl/ctl.go:35
↓ 2 callersFunctionRespSuccessWithData
RespSuccessWithData 带data成功返回
pkg/ctl/ctl.go:63
↓ 2 callersFunctionTaskViewKey
TaskViewKey 点击数的key
repository/cache/key.go:13
↓ 2 callersFunctionsetOutputFile
()
pkg/util/logger.go:36
↓ 1 callersMethodAddView
AddView
repository/db/model/task.go:31
↓ 1 callersMethodCheckPassword
CheckPassword 校验密码
repository/db/model/user.go:31
↓ 1 callersFunctionCors
跨域
middleware/cors.go:12
↓ 1 callersMethodCreateTask
(ctx context.Context, req *types.CreateTaskReq)
service/task.go:28
↓ 1 callersFunctionCreateTaskHandler
CreateTaskHandler @Tags TASK @Summary 创建任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.CreateTaskServi
api/task.go:23
↓ 1 callersMethodCreateUser
CreateUser 创建User
repository/db/dao/user.go:39
↓ 1 callersMethodDeleteTask
(ctx context.Context, req *types.DeleteTaskReq)
service/task.go:108
↓ 1 callersMethodDeleteTaskById
DeleteTaskById 通过id删除
repository/db/dao/task.go:83
↓ 1 callersFunctionDeleteTaskHandler
DeleteTaskHandler @Tags TASK @Summary 删除任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.DeleteTaskServi
api/task.go:113
↓ 1 callersMethodFindUserByUserId
FindUserByUserId 根据用户id找到用户
repository/db/dao/user.go:31
↓ 1 callersFunctionFromContext
(ctx context.Context)
pkg/ctl/user_info.go:28
↓ 1 callersFunctionGenerateToken
GenerateToken 签发用户Token
pkg/util/jwt.go:20
↓ 1 callersFunctionInitLog
()
pkg/util/logger.go:14
↓ 1 callersFunctionJWT
JWT token验证中间件
middleware/jwt.go:15
↓ 1 callersMethodListTask
(ctx context.Context, req *types.ListTasksReq)
service/task.go:55
↓ 1 callersFunctionListTaskHandler
ListTaskHandler @Tags TASK @Summary 获取任务列表 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.ListTasksServic
api/task.go:52
↓ 1 callersFunctionLoadLocales
LoadLocales 读取国际化文件
config/i18n.go:14
↓ 1 callersFunctionLoadMysqlData
(file *ini.File)
config/conf.go:45
↓ 1 callersFunctionLoadRedis
(file *ini.File)
config/conf.go:54
↓ 1 callersFunctionLoadServer
(file *ini.File)
config/conf.go:40
↓ 1 callersMethodLogin
Login 用户登陆函数
service/user.go:59
↓ 1 callersFunctionMySQLInit
()
repository/db/dao/init.go:19
↓ 1 callersFunctionNewContext
(ctx context.Context, u *UserInfo)
pkg/ctl/user_info.go:24
↓ 1 callersFunctionNewRouter
NewRouter 路由配置
routes/routes.go:16
↓ 1 callersFunctionParseToken
ParseToken 验证用户token
pkg/util/jwt.go:38
↓ 1 callersFunctionRedis
初始化redis链接
repository/cache/common.go:15
↓ 1 callersMethodSearchTask
(ctx context.Context, req *types.SearchTaskReq)
service/task.go:137
↓ 1 callersFunctionSearchTaskHandler
SearchTaskHandler @Tags TASK @Summary 查询任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.DeleteTaskServi
api/task.go:171
↓ 1 callersMethodSetPassword
SetPassword 设置密码
repository/db/model/user.go:21
↓ 1 callersMethodShowTask
ShowTask 展示Task作用
service/task.go:83
↓ 1 callersFunctionShowTaskHandler
ShowTaskHandler @Tags TASK @Summary 展示任务详细信息 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.ShowTaskServi
api/task.go:84
↓ 1 callersMethodUpdateTask
(ctx context.Context, req *types.UpdateTaskReq)
service/task.go:123
↓ 1 callersFunctionUpdateTaskHandler
UpdateTaskHandler @Tags TASK @Summary 修改任务 @Produce json @Accept json @Header 200 {string} Authorization "必备" @Param data body service.DeleteTaskServi
api/task.go:142
↓ 1 callersFunctionUserLoginHandler
UserLoginHandler @Tags USER @Summary 用户登录 @Produce json @Accept json @Param data body service.UserService true "user_name, password
api/user.go:49
↓ 1 callersFunctionUserRegisterHandler
UserRegisterHandler @Tags USER @Summary 用户注册 @Produce json @Accept json @Param data body service.UserService true "用户名, 密码" @Success 200 {object} seri
api/user.go:21
↓ 1 callersFunctionloading
()
cmd/main.go:23
↓ 1 callersFunctionmigration
执行数据迁移
repository/db/dao/migration.go:8
MethodCreateTask
CreateTask 创建Task
repository/db/dao/task.go:24
FunctionInit
()
config/conf.go:25
MethodListTask
ListTask List Task的情况
repository/db/dao/task.go:29
MethodReadDoc
()
docs/docs.go:525
MethodSearchTask
SearchTask 搜索Task
repository/db/dao/task.go:69
FunctionT
T 翻译
config/i18n.go:29
MethodUpdateTask
UpdateTask 修改
repository/db/dao/task.go:46
Functioninit
()
docs/docs.go:554
Functionmain
@title ToDoList API @version 0.0.1 @description This is a sample Server pets @name FanOne @BasePath /api/v1
cmd/main.go:16