model

package
v0.0.0-...-ec625fb Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCallbackBayarInput

func ValidateCallbackBayarInput(request *BayarSppRequest) error

func ValidateCreateGuruInput

func ValidateCreateGuruInput(request *CreateGuruRequest) error

validation

func ValidateCreateKelasInput

func ValidateCreateKelasInput(request *CreateKelasRequest) error

validation

func ValidateCreateSiswaInput

func ValidateCreateSiswaInput(request *CreateSiswaRequest) error

validation

func ValidateCreateSppInput

func ValidateCreateSppInput(request *CreateSppRequest) error

validation

func ValidateCreateUserInput

func ValidateCreateUserInput(request *CreateAdminRequest) error

validation

func ValidateUpdateKelasInput

func ValidateUpdateKelasInput(request *UpdateDetailKelasRequest) error

func ValidateUpdateKelasSiswaInput

func ValidateUpdateKelasSiswaInput(request *UpdateKelasSiswaRequest) error

Types

type BayarSppRequest

type BayarSppRequest struct {
	NoSpp string `json:"no_spp"`
}

type BayarSppResponse

type BayarSppResponse struct {
	ID         string `json:"id"`
	SiswaID    string `json:"siswa_id"`
	NoSpp      string `json:"no_spp"`
	JatuhTempo string `json:"jatuh_tempo"`
	Jumlah     string `json:"jumlah"`
	Status     string `json:"status"`
}

type CreateAdminRequest

type CreateAdminRequest struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type CreateAdminResponse

type CreateAdminResponse struct {
	ID       string `json:"id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Role     string `json:"role"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type CreateGuruRequest

type CreateGuruRequest struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
	Nama     string `json:"nama"`
}

type CreateGuruResponse

type CreateGuruResponse struct {
	ID       string `json:"id"`
	UserID   string `json:"user_id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Nama     string `json:"nama"`
	Role     string `json:"role"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type CreateKelasRequest

type CreateKelasRequest struct {
	GuruID string `json:"guru_id"`
	Kelas  string `json:"kelas"`
}

type CreateKelasResponse

type CreateKelasResponse struct {
	ID     string `json:"id"`
	GuruID string `json:"guru_id"`
	Kelas  string `json:"kelas"`
}

type CreateSiswaRequest

type CreateSiswaRequest struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
	Kelas    string `json:"kelas"`
	NIS      int    `json:"nis"`
	Nama     string `json:"nama"`
	Angkatan string `json:"angkatan"`
}

type CreateSiswaResponse

type CreateSiswaResponse struct {
	ID       string `json:"id"`
	UserID   string `json:"user_id"`
	KelasID  string `json:"kelas_id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Role     string `json:"role"`
	NIS      int    `json:"nis"`
	Nama     string `json:"nama"`
	Angkatan string `json:"angkatan"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type CreateSppRequest

type CreateSppRequest struct {
	SiswaNIS   int    `json:"siswa_nis"`
	NoSpp      string `json:"no_spp"`
	JatuhTempo string `json:"jatuh_tempo"`
	Jumlah     string `json:"jumlah"`
}

type CreateSppResponse

type CreateSppResponse struct {
	ID         string `json:"id"`
	SiswaID    string `json:"siswa_id"`
	JatuhTempo string `json:"jatuh_tempo"`
	Jumlah     string `json:"jumlah"`
	Status     string `json:"status"`
	IsActive   bool   `json:"is_active"`
	entity.Timestamp
}

type GetDetailGuruResponse

type GetDetailGuruResponse struct {
	ID       string `json:"id"`
	UserID   string `json:"user_id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Nama     string `json:"nama"`
	Role     string `json:"role"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type GetDetailKelasResponse

type GetDetailKelasResponse struct {
	ID        string `json:"id"`
	GuruID    string `json:"guru_id"`
	WaliKelas string `json:"walikelas"`
	Kelas     string `json:"kelas"`
	entity.Timestamp
}

type GetDetailSiswaResponse

type GetDetailSiswaResponse struct {
	ID       string `json:"id"`
	UserID   string `json:"user_id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Role     string `json:"role"`
	NIS      int    `json:"nis"`
	Nama     string `json:"nama"`
	Kelas    string `json:"kelas"`
	Angkatan string `json:"angkatan"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type GetDetailSppResponse

type GetDetailSppResponse struct {
	ID           string `json:"id"`
	Siswa_id     string `json:"siswa_id"`
	Nama         string `json:"nama"`
	Kelas        string `json:"kelas"`
	NIS          int    `json:"nis"`
	NoSpp        string `json:"no_spp"`
	JatuhTempo   string `json:"jatuh_tempo"`
	Jumlah       string `json:"jumlah"`
	TanggalBayar string `json:"tanggal_bayar"`
	Status       string `json:"status"`
	entity.Timestamp
}

type GetDetailUser

type GetDetailUser struct {
	ID       string `json:"id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Role     string `json:"role"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type GetListGuruResponse

type GetListGuruResponse struct {
	ID       string `json:"id"`
	UserID   string `json:"user_id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Nama     string `json:"nama"`
	Role     string `json:"role"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type GetListKelasResponse

type GetListKelasResponse struct {
	ID        string `json:"id"`
	GuruID    string `json:"guru_id"`
	WaliKelas string `json:"walikelas"`
	Kelas     string `json:"kelas"`
}

type GetListSiswaByKelasResponse

type GetListSiswaByKelasResponse struct {
	ID       string `json:"id"`
	UserID   string `json:"user_id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Role     string `json:"role"`
	NIS      int    `json:"nis"`
	Nama     string `json:"nama"`
	Kelas    string `json:"kelas"`
	Angkatan string `json:"angkatan"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type GetListSiswaResponse

type GetListSiswaResponse struct {
	ID       string `json:"id"`
	UserID   string `json:"user_id"`
	KelasID  string `json:"kelas_id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Role     string `json:"role"`
	NIS      int    `json:"nis"`
	Nama     string `json:"nama"`
	Kelas    string `json:"kelas"`
	Angkatan string `json:"angkatan"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type GetListSppResponse

type GetListSppResponse struct {
	ID           string `json:"id"`
	SiswaID      string `json:"siswa_id"`
	Nama         string `json:"nama"`
	Kelas        string `json:"kelas"`
	NIS          int    `json:"nis"`
	NoSpp        string `json:"no_spp"`
	JatuhTempo   string `json:"jatuh_tempo"`
	Jumlah       string `json:"jumlah"`
	TanggalBayar string `json:"tanggal_bayar"`
	Status       string `json:"status"`
	entity.Timestamp
}

type GetListUserResponse

type GetListUserResponse struct {
	ID       string `json:"id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Role     string `json:"role"`
	IsActive bool   `json:"is_active"`
	entity.Timestamp
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type UpdateDetailKelasRequest

type UpdateDetailKelasRequest struct {
	GuruID string `json:"guru_id"`
	Kelas  string `json:"kelas"`
}

type UpdateDetailKelasResponse

type UpdateDetailKelasResponse struct {
	ID     string `json:"id"`
	GuruID string `json:"guru_id"`
	Kelas  string `json:"kelas"`
	entity.Timestamp
}

type UpdateKelasSiswaRequest

type UpdateKelasSiswaRequest struct {
	Kelas    string `json:"kelas"`
	Angkatan string `json:"angkatan"`
}

type UpdateKelasSiswaResponse

type UpdateKelasSiswaResponse struct {
	ID       string `json:"id"`
	Nama     string `json:"nama"`
	NIS      int    `json:"nis"`
	Kelas    string `json:"kelas"`
	Angkatan string `json:"angkatan"`
	IsActive bool   `json:"is_active"`
}

Jump to

Keyboard shortcuts

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