MCPcopy Create free account

hub / github.com/Meng-Xin/take-out / functions

Functions203 in github.com/Meng-Xin/take-out

↓ 53 callersMethodError
(args ...interface{})
logger/log.go:14
↓ 44 callersFunctionNewError
(code int, msg string)
common/retcode/retcode.go:31
↓ 40 callersFunctionFatal
Fatal 渲染服务错误响应
common/retcode/retcode.go:44
↓ 27 callersFunctionOK
OK 渲染成功响应
common/retcode/retcode.go:39
↓ 13 callersMethodWithTx
WithTx 切换到事务模式
internal/repository/dao/dish_dao.go:115
↓ 12 callersFunctionGetMsg
(code int)
common/e/code.go:64
↓ 9 callersMethodUpdate
(ctx context.Context, dto request.DishUpdateDTO)
internal/service/dish_service.go:26
↓ 6 callersMethodDelete
(ctx context.Context, ids string)
internal/service/dish_service.go:27
↓ 6 callersMethodInfo
(args ...interface{})
logger/log.go:12
↓ 5 callersMethodInitApiRouter
(parent *gin.RouterGroup)
internal/router/admin/dish.go:14
↓ 5 callersMethodPageQuery
(ctx context.Context, dto *request.DishPageQueryDTO)
internal/service/dish_service.go:22
↓ 5 callersFunctionVerifyJWTAdmin
()
middle/jwt_middle.go:13
↓ 4 callersMethodGetById
(ctx context.Context, id uint64)
internal/service/employee_service.go:25
↓ 4 callersMethodInsert
Insert 插入菜品数据
internal/repository/dao/dish_dao.go:101
↓ 4 callersFunctionMD5V
MD5V 对目标字符串取Hash salt:加盐字段,iteration:hash迭代轮数。
common/utils/encrypt.go:9
↓ 4 callersMethodPaginate
(page *int, pageSize *int)
common/result.go:33
↓ 4 callersMethodSetStatus
(ctx context.Context, id uint64, status int)
internal/service/category_service.go:20
↓ 3 callersMethodDebug
(args ...interface{})
logger/log.go:11
↓ 3 callersMethodInsertBatch
(ctx context.Context, flavor []model.DishFlavor)
internal/repository/dao/dish_flavor.go:25
↓ 3 callersMethodList
(ctx context.Context, categoryId uint64)
internal/service/dish_service.go:24
↓ 3 callersMethodOnOrClose
(ctx context.Context, id uint64, status int)
internal/service/dish_service.go:25
↓ 3 callersMethodWarn
(args ...interface{})
logger/log.go:13
↓ 2 callersMethodDeleteByDishId
(ctx context.Context, dishId uint64)
internal/repository/dao/dish_flavor.go:35
↓ 2 callersMethodDeleteById
(ctx context.Context, id uint64)
internal/service/category_service.go:18
↓ 2 callersMethodGetByIdWithDish
(ctx context.Context, dishId uint64)
internal/service/setmeal_service.go:24
↓ 2 callersFunctionGetErrCode
GetErrCode 获取错误码
common/retcode/retcode.go:91
↓ 2 callersFunctionParseToken
(token string, secret string)
common/utils/jwt.go:34
↓ 2 callersFunctionRenderErrMsg
RenderErrMsg
common/retcode/retcode.go:65
↓ 2 callersFunctionrender
render
common/retcode/retcode.go:70
↓ 1 callersMethodAddCategory
(ctx context.Context, dto request.CategoryDTO)
internal/service/category_service.go:15
↓ 1 callersMethodAddDishWithFlavors
(ctx context.Context, dto request.DishDTO)
internal/service/dish_service.go:21
↓ 1 callersFunctionAliyunOss
(ctx context.Context, fileName string, file *multipart.FileHeader)
common/utils/oss.go:10
↓ 1 callersMethodBegin
Begin 开始一个事务
global/tx/transactionManager.go:9
↓ 1 callersMethodCommit
Commit 提交事务
global/tx/transactionManager.go:11
↓ 1 callersMethodCreateEmployee
(ctx context.Context, employee request.EmployeeDTO)
internal/service/employee_service.go:21
↓ 1 callersMethodDeleteByIds
(ctx context.Context, ids ...uint64)
internal/repository/dao/setmeal_dao.go:19
↓ 1 callersMethodDeleteBySetMealIds
(ctx context.Context, ids ...uint64)
internal/repository/dao/setmeal_dish_dao.go:16
↓ 1 callersMethodDsn
()
config/config.go:64
↓ 1 callersMethodEditPassword
(context.Context, request.EmployeeEditPassword)
internal/service/employee_service.go:20
↓ 1 callersMethodFatal
(args ...interface{})
logger/log.go:15
↓ 1 callersFunctionGenerateToken
GenerateToken 生成Token uid 用户id subject 签发对象 secret 加盐
common/utils/jwt.go:17
↓ 1 callersMethodGetByIdWithFlavors
(ctx context.Context, id uint64)
internal/service/dish_service.go:23
↓ 1 callersMethodGetBySetMealId
(ctx context.Context, SetMealId uint64)
internal/repository/dao/setmeal_dish_dao.go:25
↓ 1 callersMethodGetByUserName
(ctx context.Context, userName string)
internal/repository/dao/employee_dao.go:82
↓ 1 callersMethodGetCode
()
common/retcode/retcode.go:14
↓ 1 callersFunctionGlobalInit
()
initialize/enter.go:10
↓ 1 callersFunctionInitDatabase
(dsn string)
initialize/gorm.go:18
↓ 1 callersFunctionInitLoadConfig
()
config/config.go:11
↓ 1 callersMethodList
(ctx context.Context, cate int)
internal/service/category_service.go:17
↓ 1 callersMethodLogin
(context.Context, request.EmployeeLogin)
internal/service/employee_service.go:18
↓ 1 callersMethodLogout
(ctx context.Context)
internal/service/employee_service.go:19
↓ 1 callersFunctionNewCategoryController
(service service.ICategoryService)
internal/api/controller/category_controller.go:17
↓ 1 callersFunctionNewCategoryDao
(db *gorm.DB)
internal/repository/dao/category_dao.go:99
↓ 1 callersFunctionNewCategoryService
(repo *dao.CategoryDao)
internal/service/category_service.go:98
↓ 1 callersFunctionNewDishController
(service service.IDishService)
internal/api/controller/dish_controller.go:16
↓ 1 callersFunctionNewDishFlavorDao
NewDishFlavorDao 创建dao实例
internal/repository/dao/dish_flavor.go:51
↓ 1 callersFunctionNewDishRepo
(db *gorm.DB)
internal/repository/dao/dish_dao.go:110
↓ 1 callersFunctionNewDishService
(repo *dao.DishDao, dishFlavorRepo *dao.DishFlavorDao)
internal/service/dish_service.go:205
↓ 1 callersFunctionNewEmployeeController
(employeeService service.IEmployeeService)
internal/api/controller/employee_controller.go:17
↓ 1 callersFunctionNewEmployeeDao
(db *gorm.DB)
internal/repository/dao/employee_dao.go:92
↓ 1 callersFunctionNewEmployeeService
(repo *dao.EmployeeDao)
internal/service/employee_service.go:182
↓ 1 callersFunctionNewSetMealController
(service service.ISetMealService)
internal/api/controller/setmeal_controller.go:16
↓ 1 callersFunctionNewSetMealDao
(db *gorm.DB)
internal/repository/dao/setmeal_dao.go:89
↓ 1 callersFunctionNewSetMealDishDao
()
internal/repository/dao/setmeal_dish_dao.go:44
↓ 1 callersFunctionNewSetMealService
(repo *dao.SetMealDao, setMealDishRepo *dao.SetMealDishDao)
internal/service/setmeal_service.go:157
↓ 1 callersMethodPageQuery
(ctx context.Context, dto request.CategoryPageQueryDTO)
internal/service/category_service.go:16
↓ 1 callersMethodPageQuery
(ctx context.Context, dto request.SetMealPageQueryDTO)
internal/service/setmeal_service.go:22
↓ 1 callersMethodPageQuery
(ctx context.Context, dto request.EmployeePageQueryDTO)
internal/service/employee_service.go:22
↓ 1 callersFunctionPageVerify
PageVerify 分页查询 过滤器
common/result.go:20
↓ 1 callersFunctionRenderReply
RenderReply
common/retcode/retcode.go:60
↓ 1 callersMethodRollback
Rollback 回滚事务
global/tx/transactionManager.go:13
↓ 1 callersMethodSaveWithDish
(ctx context.Context, dto request.SetMealDTO)
internal/service/setmeal_service.go:21
↓ 1 callersFunctionSlowQueryLog
SlowQueryLog 慢查询日志
initialize/gorm.go:54
↓ 1 callersMethodUpdate
(ctx context.Context, dto request.CategoryDTO)
internal/service/category_service.go:19
↓ 1 callersMethodUpdateEmployee
(ctx context.Context, dto request.EmployeeDTO)
internal/service/employee_service.go:24
↓ 1 callersMethodUpdateStatus
UpdateStatus 动态更新包括零值
internal/repository/dao/employee_dao.go:19
↓ 1 callersFunctioninitRedis
()
initialize/redis.go:9
↓ 1 callersFunctionrouterInit
()
initialize/router.go:10
FunctionAbs
(input T)
common/utils/generice.go:24
MethodAddCategory
(ctx context.Context, dto request.CategoryDTO)
internal/service/category_service.go:80
MethodAddCategory
(ctx *gin.Context)
internal/api/controller/category_controller.go:21
MethodAddDish
AddDish 新增菜品数据
internal/api/controller/dish_controller.go:21
MethodAddDishWithFlavors
(ctx context.Context, dto request.DishDTO)
internal/service/dish_service.go:167
MethodAddEmployee
AddEmployee 新增员工
internal/api/controller/employee_controller.go:74
MethodAfterFind
(tx *gorm.DB)
internal/model/employee.go:48
MethodBeforeCreate
(tx *gorm.DB)
internal/model/dish.go:25
MethodBeforeCreate
(tx *gorm.DB)
internal/model/employee.go:24
MethodBeforeCreate
(tx *gorm.DB)
internal/model/category.go:21
MethodBeforeCreate
(tx *gorm.DB)
internal/model/setmeal.go:23
MethodBeforeUpdate
(tx *gorm.DB)
internal/model/dish.go:38
MethodBeforeUpdate
(tx *gorm.DB)
internal/model/employee.go:37
MethodBeforeUpdate
(tx *gorm.DB)
internal/model/category.go:34
MethodBeforeUpdate
(tx *gorm.DB)
internal/model/setmeal.go:36
MethodBegin
()
global/tx/gormTx.go:20
MethodCommit
()
global/tx/gormTx.go:25
MethodCreateEmployee
(ctx context.Context, employeeDTO request.EmployeeDTO)
internal/service/employee_service.go:92
FunctionCustomError
CustomError 渲染自定义错误
common/retcode/retcode.go:54
MethodDebug
(args ...interface{})
logger/log.go:64
MethodDebug
(args ...interface{})
logger/slog.go:37
MethodDelete
(ctx context.Context, ids string)
internal/service/dish_service.go:35
next →1–100 of 203, ranked by callers