structs

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CekUserLogin

type CekUserLogin struct {
	Id       int    `json:"id"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type CheckId

type CheckId struct {
	CountId int `json:"count_id"`
}

type CheckIdRekom

type CheckIdRekom struct {
	CountId int `json:"count_id"`
}

type Component

type Component struct {
}

func (*Component) GetMessageErr

func (c *Component) GetMessageErr() string

func (*Component) GetMessageSucc

func (c *Component) GetMessageSucc() string

func (*Component) GetTimeNow

func (c *Component) GetTimeNow() string

func (*Component) TblLead

func (c *Component) TblLead() string

type CreateRekomendasi

type CreateRekomendasi struct {
	Id     int    `json:"id"`
	Nama   string `json:"nama"`
	Alamat string `json:"alamat"`
	//Foto      string `json:"foto"`
	Lat       string `json:"lat"`
	Lng       string `json:"lng"`
	Rating    string `json:"rating"`
	IdType    int    `json:"id_type"`
	CreatedAt string `json:"created_at"`
}

type CreateSos

type CreateSos struct {
	Id int `json:"id" form:"id"`
	//Sos           bool   `json:"sos" form:"sos" binding:"required"`
	Message       string `json:"message" form:"message"`
	IdUsersSender int    `json:"id_users_sender" form:"id_users_sender" binding:"required"`
	Lat           string `json:"lat" form:"lat" binding:"required"`
	Lng           string `json:"lng" form:"lng" binding:"-"`
	CreatedAt     string `json:"created_at" form:"created_at"`
}

type CreateSosNotif

type CreateSosNotif struct {
	Id          int `json:"id" form:"id"`
	IdSosJamaah int `json:"id_sos_jamaah" form:"id_sos_jamaah"`
}

type CreateUsers

type CreateUsers struct {
	Id        int    `json:"id" form:"id"`
	Nama      string `json:"nama" form:"nama"`
	Username  string `json:"username" form:"username"`
	Password  string `json:"password" form:"password"`
	TglLahir  string `json:"tgl_lahir" form:"tgl_lahir"`
	NoKtp     string `json:"no_ktp" form:"no_ktp" binding:"required"`
	NoHp      string `json:"no_hp" form:"no_hp" binding:"required"`
	NoVisa    string `json:"no_visa" form:"no_visa" binding:"required"`
	NoPasspor string `json:"no_passpor" form:"no_passpor" binding:"required"`
	//Foto         string `json:"foto" form:"foto"`
	IdPrivileges int    `json:"id_privileges" form:"-" binding:"-"`
	CreatedAt    string `json:"created_at" form:"created_at"`
}

type DetailSosAdmin

type DetailSosAdmin struct {
	Id            *int    `json:"id" form:"id" binding:"required"`
	IdSosSender   *int    `json:"id_sos_sender" form:"id_sos_sender"`
	IdUsersAdmin  *int    `json:"id_users_admin" form:"id_users_admin"`
	NamaAdmin     *string `json:"nama_admin" form:"nama_admin"`
	Sos           *bool   `json:"sos" form:"sos"`
	IdUsersSender *int    `json:"id_users_sender" form:"id_users_sender"`
	NamaUser      *string `json:"nama_user" form:"nama_user"`
	Lat           *string `json:"lat" form:"lat"`
	Lng           *string `json:"lng" form:"lng"`
	NoKtp         *int    `json:"no_ktp" form:"no_ktp"`
	NoHp          *int    `json:"no_hp" form:"no_hp"`
	NoVisa        *string `json:"no_visa" form:"no_visa"`
	NoPasspor     *string `json:"no_passpor" form:"no_passpor"`
	Foto          *string `json:"foto" form:"foto"`
	IdPrivileges  *int    `json:"id_privileges" form:"id_privileges"`
	Role          *string `json:"role" form:"role"`
	CreatedAt     *string `json:"created_at" form:"created_at"`
}

type DetailSosPetugas

type DetailSosPetugas struct {
	Id            *int    `json:"id" form:"id" binding:"required"`
	IdSosJamaah   *int    `json:"id_sos_jamaah" form:"id_sos_jamaah"`
	Message       *string `json:"message" form:"message"`
	IdUsersSender *int    `json:"id_users_sender" form:"id_users_sender"`
	CreatedAt     *string `json:"created_at" form:"created_at"`
	Nama          *string `json:"nama" form:"nama"`
	Lat           *string `json:"lat" form:"lat"`
	Lng           *string `json:"lng" form:"lng"`
	NoKtp         *string `json:"no_ktp" form:"no_ktp"`
	NoHp          *string `json:"no_hp" form:"no_hp"`
	NoVisa        *string `json:"no_visa" form:"no_visa"`
	NoPasspor     *string `json:"no_passpor" form:"no_passpor"`
	Role          *string `json:"role" form:"role"`
}

type GetFoto

type GetFoto struct {
	Id           int    `json:"id"`
	Foto         string `json:"foto"`
	IdPrivileges int    `json:"id_privileges"`
	Role         string `json:"role"`
}

type GetLocationUsers

type GetLocationUsers struct {
	Id           int    `json:"id"`
	Nama         string `json:"nama"`
	Lat          string `json:"lat"`
	Lng          string `json:"lng"`
	IdPrivileges *int   `json:"id_privileges" form:"id_privileges" binding:"required"`
	Role         string `json:"role"`
}

type GetPrivileges

type GetPrivileges struct {
	Id   int    `json:"id"`
	Role string `json:"role"`
}

type GetRekomendasi

type GetRekomendasi struct {
	Id        int    `json:"id"`
	Nama      string `json:"nama"`
	Alamat    string `json:"alamat"`
	Foto      string `json:"foto"`
	Rating    string `json:"rating"`
	Lat       string `json:"lat"`
	Lng       string `json:"lng"`
	IdType    int    `json:"id_type"`
	TypeRekom string `json:"type_rekom"`
}

type GetSosAdmin

type GetSosAdmin struct {
	Id            *int    `json:"id" form:"id"`
	IdSosSender   *int    `json:"id_sos_sender" form:"id_sos_sender"`
	IdUsersAdmin  *int    `json:"id_users_admin" form:"id_users_admin"`
	NamaAdmin     *string `json:"nama_admin" form:"nama_admin"`
	Sos           *bool   `json:"sos" form:"sos"`
	IdUsersSender *int    `json:"id_users_sender" form:"id_users_sender"`
	NamaUser      *string `json:"nama_user" form:"nama_user"`
	Lat           *string `json:"lat" form:"lat"`
	Lng           *string `json:"lng" form:"lng"`
	CreatedAt     *string `json:"created_at" form:"created_at"`
}

type GetSosPetugas

type GetSosPetugas struct {
	Id          *int `json:"id" form:"id"`
	IdSosJamaah *int `json:"id_sos_jamaah" form:"id_sos_jamaah"`
	//Sos             *bool   `json:"sos" form:"sos"`
	IdUsersSender *int    `json:"id_users_sender" form:"id_users_sender"`
	Nama          *string `json:"nama" form:"nama"`
	Message       *string `json:"message" form:"message"`
	Lat           *string `json:"lat" form:"lat"`
	Lng           *string `json:"lng" form:"lng"`
	CreatedAt     *string `json:"created_at" form:"created_at"`
}

type GetType

type GetType struct {
	Id        int    `json:"id"`
	TypeRekom string `json:"type_rekom"`
}

type GetUser

type GetUser struct {
	Id        *int    `json:"id" form:"id"`
	Nama      *string `json:"nama" form:"nama"`
	Username  *string `json:"username" form:"username"`
	TglLahir  *string `json:"tgl_lahir" form:"tgl_lahir"`
	NoKtp     *string `json:"no_ktp" form:"no_ktp"`
	NoHp      *string `json:"no_hp" form:"no_hp"`
	NoVisa    *string `json:"no_visa" form:"no_visa"`
	NoPasspor *string `json:"no_passpor" form:"no_passpor"`
	//Foto         *string `json:"foto" form:"foto"`
	IdPrivileges *int    `json:"id_privileges" form:"id_privileges" binding:"-"`
	Role         *string `json:"role" form:"role"`
	CreatedAt    *string `json:"created_at" form:"created_at"`
}

type GetUserLogin

type GetUserLogin struct {
	Id        int     `json:"id"`
	Nama      *string `json:"nama"`
	Username  *string `json:"username"`
	TglLahir  *string `json:"tgl_lahir"`
	NoKtp     *string `json:"no_ktp"`
	NoHp      *string `json:"no_hp"`
	NoVisa    *string `json:"no_visa"`
	NoPasspor *string `json:"no_passpor"`
	//Foto         *string `json:"foto"`
	IdPrivileges *int    `json:"id_privileges"`
	Role         *string `json:"role"`
	CreatedAt    *string `json:"created_at"`
	Token        string  `json:"token"`
}

type JSONTime

type JSONTime time.Time

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

type JsonResponse

type JsonResponse struct {
	ApiStatus  int64       `json:"api_status"`
	ApiMessage string      `json:"api_message"`
	Data       interface{} `json:"data"`
}

type Marshalers

type Marshalers interface {
	MarshalJSON() ([]byte, error)
}

type ReadInterface

type ReadInterface interface {
	Id() int64
}

type RekomFoto

type RekomFoto struct {
	Id     *int64  `json:"id"`
	Foto   *string `json:"foto"`
	IdType *int64  `json:"id_type"`
}

type Results

type Results interface {
}

type SearchUser

type SearchUser struct {
	Id           int64  `json:"id" form:"id"`
	Nama         string `json:"nama" form:"nama"`
	Username     string `json:"username" form:"username"`
	TglLahir     string `json:"tgl_lahir" form:"tgl_lahir"`
	NoKtp        int    `json:"no_ktp" form:"no_ktp"`
	NoHp         int    `json:"no_hp" form:"no_hp"`
	NoVisa       string `json:"no_visa" form:"no_visa"`
	NoPasspor    string `json:"no_passpor" form:"no_passpor"`
	Foto         string `json:"foto" form:"foto"`
	IdPrivileges int    `json:"id_privileges" form:"id_privileges" binding:"-"`
	Role         string `json:"role" form:"role"`
	CreatedAt    string `json:"created_at" form:"created_at"`
}

type UpdateLocationUsers

type UpdateLocationUsers struct {
	Id  int    `json:"id"`
	Lat string `json:"lat"`
	Lng string `json:"lng"`
}

type UpdateRekomendasi

type UpdateRekomendasi struct {
	Id     int    `json:"id"`
	Nama   string `json:"nama"`
	Alamat string `json:"alamat"`
	Foto   string `json:"foto"`
	Rating string `json:"rating"`
	Lat    string `json:"lat"`
	Lng    string `json:"lng"`
}

type UpdateUsers

type UpdateUsers struct {
	Id        int    `json:"id"`
	Nama      string `json:"nama"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	NoHp      int    `json:"no_hp"`
	NoVisa    string `json:"no_visa"`
	NoPasspor string `json:"no_passpor"`
	Foto      string `json:"foto"`
}

type UploadFoto

type UploadFoto struct {
	Id           int                   `json:"id" form:"id"`
	Foto         *multipart.FileHeader `json:"foto" form:"foto"`
	IdPrivileges int                   `json:"id_privileges" form:"id_privileges"`
}

Jump to

Keyboard shortcuts

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