Documentation
¶
Index ¶
- type SqlRepository
- func (r *SqlRepository) CheckDuplicate(ctx context.Context, userQuota, dataQuota string) (bool, error)
- func (r *SqlRepository) Create(ctx context.Context, user entity.User) error
- func (r *SqlRepository) GetData(ctx context.Context, dataQuota string) (entity.User, error)
- func (r *SqlRepository) GetSync(ctx context.Context, date time.Time) ([]entity.User, error)
- func (r *SqlRepository) GetUnSync() ([]entity.User, error)
- func (r *SqlRepository) GetUser(ctx context.Context, userQuota string) (entity.User, error)
- func (r *SqlRepository) Update(ctx context.Context, user entity.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlRepository ¶
type SqlRepository struct {
// contains filtered or unexported fields
}
func NewSqlRepository ¶
func NewSqlRepository(dataBaseConnections *gorm.DB) *SqlRepository
func (*SqlRepository) CheckDuplicate ¶
Click to show internal directories.
Click to hide internal directories.