Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerCRUD ¶
type HandlerCRUD interface { ReadHandler WriteHandler }
type ReadHandler ¶
type UsecaseCRUD ¶
type UsecaseCRUD interface { GetList(ctx context.Context, requestData interface{}) (*database.SelectResponse, error) GetDetailById(ctx context.Context, id int) (*database.SelectResponse, error) Insert(ctx context.Context, data interface{}) (*database.CUDResponse, error) Update(ctx context.Context, data interface{}) (*database.CUDResponse, error) Delete(ctx context.Context, id int) (*database.CUDResponse, error) }
type WriteHandler ¶
type WriteRepo ¶
type WriteRepo interface { Insert(ctx context.Context, data *database.CUDConstructData, trx ...*sql.Tx) (*database.CUDResponse, error) Update(ctx context.Context, data *database.CUDConstructData, trx ...*sql.Tx) (*database.CUDResponse, error) Delete(ctx context.Context, id int, trx ...*sql.Tx) (*database.CUDResponse, error) }
Click to show internal directories.
Click to hide internal directories.