Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeedDataWhenCreateTable ¶
func SeedDataWhenCreateTable(dbdialect string, tableName string, dataSeeder DataSeeder) schema.ApplyHook
Types ¶
type Client ¶
type Client interface { GetUserWithAchievement(ctx context.Context, userName string) (*ent.User, error) GetMealByInterval(ctx context.Context, userID int, from int64, to int64) ([]*ent.Meal, error) GetBFPDataPointByInterval(ctx context.Context, userID int, from int64, to int64) ([]*ent.BFPDataPoint, error) GetRecentArticle(ctx context.Context, limit int) ([]*ent.Article, error) GetRecommendationArticle(ctx context.Context, limit int) ([]*ent.Article, error) Closed() }
func NewStoreClient ¶
func NewStoreClient() Client
Click to show internal directories.
Click to hide internal directories.