repository

package
v0.0.0-...-ed165e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KunjunganInterface

type KunjunganInterface interface {
	Create(req domain.Kunjungan) (*domain.Kunjungan, error)
	List(id uint) (*[]domain.Kunjungan, error)
	GotPrice(req domain.Kunjungan) (*[]domain.Obat, error)
}

func NewKunjungan

func NewKunjungan(client *config.Postgres) KunjunganInterface

type ObatInterface

type ObatInterface interface {
	Create(req domain.Obat) (*domain.Obat, error)
	FindID(id uint) (*domain.Obat, error)
	FindAll() (*[]domain.Obat, error)
	Update(id uint, req domain.Obat) (*domain.Obat, error)
	Delete(id uint) error
}

func NewObat

func NewObat(client *config.Postgres) ObatInterface

type PenyakitInterface

type PenyakitInterface interface {
	Create(req domain.Penyakit) (*domain.Penyakit, error)
	ListAll() (*[]domain.Penyakit, error)
	FindID(id uint) (*domain.Penyakit, error)
	Delete(id uint) error
}

func NewPenyakit

func NewPenyakit(client *config.Postgres) PenyakitInterface

type ReportedInterface

type ReportedInterface interface {
	List() (*[]domain.Reported, error)
	Create(req *domain.Kunjungan) error
}

func NewReported

func NewReported(client *mongo.Client, conf *config.App) ReportedInterface

type UserInterface

type UserInterface interface {
	Create(req domain.UserRegister) (*domain.User, error)
	Find(req domain.UserLogin) (*domain.User, error)
	GetDoctor() (*[]domain.User, error)
	GetNurse() (*[]domain.User, error)
	Update(id uint, req domain.User) error
	ListAll() (*[]domain.User, error)
	Delete(id uint) error
}

func NewUser

func NewUser(client *config.Postgres) UserInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL