Documentation ¶
Index ¶
- Constants
- Variables
- type IchubPageDbRequest
- func (this *IchubPageDbRequest) Clear() *IchubPageDbRequest
- func (this *IchubPageDbRequest) DefaultTableFields() *IchubPageDbRequest
- func (this *IchubPageDbRequest) FieldNames2SnakeCase()
- func (this *IchubPageDbRequest) FindTable() *gorm.DB
- func (this *IchubPageDbRequest) GeneralQuery() *pagedto.IchubPageResult
- func (this *IchubPageDbRequest) GeneralQueryDto() *pagedto.IchubPageResult
- func (this *IchubPageDbRequest) IfSubTable() bool
- func (this *IchubPageDbRequest) InitPage()
- func (this *IchubPageDbRequest) MetadataQuery() *basedto.IchubResult
- func (this *IchubPageDbRequest) NewSubTable() *IchubPageDbRequest
- func (this *IchubPageDbRequest) QuerySubTable(records []map[string]interface{})
- func (this *IchubPageDbRequest) ValueOfPageRequest(that *IchubPageDbRequest) *IchubPageDbRequest
- type SubTableDto
Constants ¶
View Source
const DefaultTable = ichubmetadata.DefaultTable //"rules"
@Title 文件名称: IchubPageDbRequest.go @Description 描述: IchubPageDbRequest
@Author 作者: leijianming@163.com 时间(2024-02-21 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-21 22:38:21)
Variables ¶
View Source
var DefaultFields = strings.Join(ichubmetadata.DefaultFields, ",") //"rule_id,rule_key"
Functions ¶
This section is empty.
Types ¶
type IchubPageDbRequest ¶
type IchubPageDbRequest struct { pagedto.IchubPageRequest //表名 TableName string `json:"table_name"` //字段列表,分隔 FieldsName string `json:"fields_name"` //返回日期转为int64 TimeToInt bool `json:"time_to_int"` SubTable *SubTableDto `json:"sub_table,omitempty"` JoinTable *SubTableDto `json:"join_table,omitempty"` }
通用表查询请求数据
func NewIchubPageDbRequest ¶
func NewIchubPageDbRequest() *IchubPageDbRequest
func NewPageDbRequest ¶
func NewPageDbRequest(pageSize int) *IchubPageDbRequest
func (*IchubPageDbRequest) Clear ¶
func (this *IchubPageDbRequest) Clear() *IchubPageDbRequest
func (*IchubPageDbRequest) DefaultTableFields ¶
func (this *IchubPageDbRequest) DefaultTableFields() *IchubPageDbRequest
func (*IchubPageDbRequest) FieldNames2SnakeCase ¶
func (this *IchubPageDbRequest) FieldNames2SnakeCase()
func (*IchubPageDbRequest) FindTable ¶
func (this *IchubPageDbRequest) FindTable() *gorm.DB
func (*IchubPageDbRequest) GeneralQuery ¶
func (this *IchubPageDbRequest) GeneralQuery() *pagedto.IchubPageResult
func (*IchubPageDbRequest) GeneralQueryDto ¶
func (this *IchubPageDbRequest) GeneralQueryDto() *pagedto.IchubPageResult
func (*IchubPageDbRequest) IfSubTable ¶
func (this *IchubPageDbRequest) IfSubTable() bool
func (*IchubPageDbRequest) InitPage ¶
func (this *IchubPageDbRequest) InitPage()
func (*IchubPageDbRequest) MetadataQuery ¶
func (this *IchubPageDbRequest) MetadataQuery() *basedto.IchubResult
func (*IchubPageDbRequest) NewSubTable ¶
func (this *IchubPageDbRequest) NewSubTable() *IchubPageDbRequest
func (*IchubPageDbRequest) QuerySubTable ¶
func (this *IchubPageDbRequest) QuerySubTable(records []map[string]interface{})
func (*IchubPageDbRequest) ValueOfPageRequest ¶
func (this *IchubPageDbRequest) ValueOfPageRequest(that *IchubPageDbRequest) *IchubPageDbRequest
type SubTableDto ¶
type SubTableDto struct { basedto.BaseEntity TableName string `json:"table_name"` FieldsName string `json:"fields_name"` PageSize int `json:"page_size"` JoinKeys map[string]string `json:"join_keys"` }
func NewSubTableDto ¶
func NewSubTableDto() *SubTableDto
Click to show internal directories.
Click to hide internal directories.