mirror of
https://github.com/Warky-Devs/ResolveSpec.git
synced 2025-05-19 05:07:30 +00:00
Request interfaces
This commit is contained in:
parent
6dd6abb2e8
commit
2ac0404222
@ -7,3 +7,15 @@ type GormTableNameInterface interface {
|
||||
type GormTableSchemaInterface interface {
|
||||
TableSchema() string
|
||||
}
|
||||
|
||||
type GormTableCRUDRequest struct {
|
||||
CRUDRequest *string `json:"crud_request"`
|
||||
}
|
||||
|
||||
func (r *GormTableCRUDRequest) SetRequest(request string) {
|
||||
r.CRUDRequest = &request
|
||||
}
|
||||
|
||||
func (r GormTableCRUDRequest) GetRequest() string {
|
||||
return *r.CRUDRequest
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ type PreloadOption struct {
|
||||
Filters []FilterOption `json:"filters"`
|
||||
Limit *int `json:"limit"`
|
||||
Offset *int `json:"offset"`
|
||||
Updatable *bool `json:"updateable"` // if true, the relation can be updated
|
||||
}
|
||||
|
||||
type FilterOption struct {
|
||||
|
Loading…
Reference in New Issue
Block a user