Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ColFmtMap = map[string]string{
"dayFmt": "date(%v)",
"hourFmt": "DATE_FORMAT(%v, '%%Y-%%m-%%d %%H:00:00')",
"monthFmt": "DATE_FORMAT(%v, '%%Y-%%m')",
"yearFmt": "Year(%v)",
}
)
Functions ¶
func FilterFmt ¶
func FilterFmt(conn *gorm.DB, si *relationDB.DataStatisticsInfo, k string, v any) *gorm.DB
Types ¶
type IndexLogic ¶
func NewIndexLogic ¶
func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic
func (*IndexLogic) Index ¶
func (l *IndexLogic) Index(req *types.StaticsticsInfoIndexReq) (resp *types.StaticsticsInfoIndexResp, err error)
type ReadLogic ¶
func NewReadLogic ¶
func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic
func (*ReadLogic) Handle ¶
func (l *ReadLogic) Handle(req *types.StaticsticsInfoReadReq) (resp *types.StaticsticsInfoReadResp, err error)
func (*ReadLogic) Read ¶
func (l *ReadLogic) Read(req *types.StaticsticsInfoReadReq) (resp *types.StaticsticsInfoReadResp, err error)
Click to show internal directories.
Click to hide internal directories.