-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrequestCore.go
More file actions
35 lines (29 loc) · 1.09 KB
/
Copy pathrequestCore.go
File metadata and controls
35 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Package requestCore provides the core request processing pipeline framework.
package requestCore
import (
"github.com/hmmftg/requestCore/libParams"
"github.com/hmmftg/requestCore/libQuery"
"github.com/hmmftg/requestCore/libQuery/liborm"
"github.com/hmmftg/requestCore/libRequest"
"github.com/hmmftg/requestCore/response"
)
// GetDB returns the query runner interface for database access.
func (m RequestCoreModel) GetDB() libQuery.QueryRunnerInterface {
return m.QueryInterface
}
// ORM returns the ORM interface for Gorm-based database access.
func (m RequestCoreModel) ORM() liborm.OrmInterface {
return m.OrmInterface
}
// RequestTools returns the request interface for request lifecycle management.
func (m RequestCoreModel) RequestTools() libRequest.RequestInterface {
return m.RequestInterface
}
// Responder returns the response handler for formatting HTTP responses.
func (m RequestCoreModel) Responder() response.ResponseHandler {
return m.RespHandler
}
// Params returns the application parameter interface.
func (m RequestCoreModel) Params() libParams.ParamInterface {
return m.ParamMap
}