2025-12-30 16:14:15 +08:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
2026-02-24 15:42:36 +08:00
|
|
|
"gitea.com/red-future/common/log/model/dto"
|
|
|
|
|
"gitea.com/red-future/common/log/service"
|
2025-12-30 16:14:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type operationLog struct{}
|
|
|
|
|
|
|
|
|
|
// OperationLog 操作日志控制器
|
|
|
|
|
var OperationLog = new(operationLog)
|
|
|
|
|
|
2026-01-16 16:55:32 +08:00
|
|
|
// GetByCollectionId 根据collectionId获取操作日志列表
|
|
|
|
|
func (c *operationLog) GetByCollectionId(ctx context.Context, req *dto.ListLogsReq) (res *dto.ListLogsResp, err error) {
|
|
|
|
|
return service.OperationLog.GetByCollectionId(ctx, req)
|
2025-12-30 16:14:15 +08:00
|
|
|
}
|