update license
This commit is contained in:
@@ -49,8 +49,8 @@ func (r *LicenseRepository) FindByID(ctx context.Context, id string) (*entity.Li
|
||||
return license, nil
|
||||
}
|
||||
|
||||
func (r *LicenseRepository) GetAll(ctx context.Context, limit, offset int, statusFilter string) ([]*entity.License, int64, error) {
|
||||
var licenses []*entity.License
|
||||
func (r *LicenseRepository) GetAll(ctx context.Context, limit, offset int, statusFilter string) ([]*entity.LicenseGetAll, int64, error) {
|
||||
var licenses []*entity.LicenseGetAll
|
||||
var total int64
|
||||
|
||||
// Define the main query with status calculation
|
||||
|
||||
@@ -196,5 +196,5 @@ type License interface {
|
||||
Create(ctx context.Context, license *entity.LicenseDB) (*entity.LicenseDB, error)
|
||||
Update(ctx context.Context, license *entity.LicenseDB) (*entity.LicenseDB, error)
|
||||
FindByID(ctx context.Context, id string) (*entity.LicenseDB, error)
|
||||
GetAll(ctx context.Context, limit, offset int, statusFilter string) ([]*entity.License, int64, error)
|
||||
GetAll(ctx context.Context, limit, offset int, statusFilter string) ([]*entity.LicenseGetAll, int64, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user