Documentation
¶
Index ¶
- Variables
- type IRepository
- type Profile
- type ProfileCreateInput
- type ProfileCreateRequest
- type ProfileUpdateInput
- type ProfileUpdateProfileInput
- type ProfileUpdateRequest
- type Repository
- type Request
- type Service
- func (s Service) Create(ctx context.Context, userID int, input any) (*profile.IModel, error)
- func (s Service) Delete(ctx context.Context, userID int) error
- func (s Service) GetById(ctx context.Context, userID int) (*profile.IModel, error)
- func (s Service) GetByIds(ctx context.Context, userID ...int) ([]profile.IModel, error)
- func (s Service) Trx(db *gorm.DB) profile.IProfileService
- func (s Service) Update(ctx context.Context, userID int, input any) error
- func (s Service) UpdateProfile(ctx context.Context, userID int, input any) error
- type Transform
- type Transformer
Constants ¶
This section is empty.
Variables ¶
View Source
var OrderBy = clause.FieldOrderBy{}
View Source
var Searchable = clause.FieldSearchable{}
Functions ¶
This section is empty.
Types ¶
type IRepository ¶
type IRepository interface {
repository.Repository[IRepository, Profile]
}
type Profile ¶
type ProfileCreateInput ¶
type ProfileCreateRequest ¶
type ProfileUpdateInput ¶
type ProfileUpdateRequest ¶
type Repository ¶
type Repository struct {
repository.Repo[Profile]
}
func NewProfileRepository ¶
func NewProfileRepository(db *gorm.DB) Repository
func (Repository) Trx ¶
func (r Repository) Trx(db *gorm.DB) IRepository
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( profileRepository IRepository, ) Service
type Transformer ¶
type Transformer struct {
}
func NewTransformer ¶
func NewTransformer() *Transformer
func (Transformer) Transform ¶
func (r Transformer) Transform(m *profile.IModel) interface{}
func (Transformer) TransformList ¶
func (r Transformer) TransformList(models []profile.IModel) []interface{}
func (Transformer) TransformProfile ¶
func (r Transformer) TransformProfile(m *profile.IModel) interface{}
Click to show internal directories.
Click to hide internal directories.