models

package
v0.0.0-...-286886a Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRekomendasi

func CreateRekomendasi(nama string, alamat string, lat string, lng string, rating string, id_type string) structs.JsonResponse

func CreateUsers

func CreateUsers(nama string, username string, password string,
	tgl_lahir string, no_ktp string, no_hp string, no_visa string,
	no_passpor string, id_privileges string) structs.JsonResponse

func CreateUsers2

func CreateUsers2(users structs.CreateUsers) (structs.CreateUsers, error)

func DecryptPassword

func DecryptPassword(password string) (string, error)

func DetailSosPetugas

func DetailSosPetugas(detail structs.DetailSosPetugas) (structs.DetailSosPetugas, error)

func EncryptPassword

func EncryptPassword(password string) (string, error)

func FetchAllUsers

func FetchAllUsers(usersAll structs.GetUser, limit string, offset string) ([]structs.GetUser, error)

func FetchUsersProfile

func FetchUsersProfile(users structs.GetUser) (structs.GetUser, error)

func GetJamaah

func GetJamaah(created_at string, nama string, username string, tgl_lahir string, no_ktp string,
	no_hp string, no_visa string, no_passpor string, id_privileges string, offset string, limit string) structs.JsonResponse

func GetPetugas

func GetPetugas(created_at string, nama string, username string, tgl_lahir string, no_ktp string,
	no_hp string, no_visa string, no_passpor string, id_privileges string, offset string, limit string) structs.JsonResponse

func GetRekomFoto

func GetRekomFoto(foto structs.RekomFoto) ([]structs.RekomFoto, error)

func GetRekomends

func GetRekomends(nama string, alamat string, foto string, rating string, lat string, lng string, id_type string, offset string, limit string) structs.JsonResponse

func GetRekomendsDetail

func GetRekomendsDetail(id string) structs.JsonResponse

func GetRole

func GetRole() structs.JsonResponse

func GetSosPetugas

func GetSosPetugas(petugasSos structs.GetSosPetugas, limit string, offset string) ([]structs.GetSosPetugas, error)

func GetType

func GetType() structs.JsonResponse

func GetUserDetail

func GetUserDetail(id string) structs.JsonResponse

func GetUsers

func GetUsers(nama string, username string, tgl_lahir string, no_ktp string,
	no_hp string, no_visa string, no_passpor string, id_privileges string, offset string, limit string) structs.JsonResponse

func GetUsersAll

func GetUsersAll(users structs.GetUser, limit string, offset string) ([]structs.GetUser, error)

func GetUsersFoto

func GetUsersFoto(id string, foto string, id_privileges string) structs.JsonResponse

func LoginAdmin

func LoginAdmin(username string, password string) structs.JsonResponse

func LoginPetugas

func LoginPetugas(username string, password string) structs.JsonResponse

func LoginUsers

func LoginUsers(username string, password string) structs.JsonResponse

func SearchUsers

func SearchUsers(search structs.SearchUser) ([]structs.SearchUser, error)

func UpdateLocationUsers

func UpdateLocationUsers(id string, lat string, lng string) structs.JsonResponse

func UpdateRekomendasi

func UpdateRekomendasi(id string, nama string, alamat string,
	files multipart.File, header *multipart.FileHeader, rating string, lat string, lng string) structs.JsonResponse

func UpdateUser

func UpdateUser(id string, nama string, username string, password string,
	no_hp string, no_visa string, no_passpor string, files multipart.File, header *multipart.FileHeader) structs.JsonResponse

func UploadImage

func UploadImage(type_foto string, id_data string, files multipart.File, header *multipart.FileHeader) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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