package session import ( "context" sessionDto "ai-agent/workflow/model/dto/session" sessionService "ai-agent/workflow/service/session" "gitea.redpowerfuture.com/red-future/common/beans" ) type session struct{} var Session = new(session) func (c *session) Get(ctx context.Context, req *sessionDto.GetSessionInfoReq) (res *sessionDto.GetSessionInfoRes, err error) { return sessionService.SessionService.Get(ctx, req) } func (c *session) List(ctx context.Context, req *sessionDto.ListSessionReq) (res *sessionDto.ListSessionRes, err error) { return sessionService.SessionService.List(ctx, req) } func (c *session) Delete(ctx context.Context, req *sessionDto.DeleteSessionReq) (res *beans.ResponseEmpty, err error) { if err = sessionService.SessionService.Delete(ctx, req); err != nil { return } return &beans.ResponseEmpty{}, nil }