sipd-auth/model/list_user.go
2025-09-16 08:32:11 +07:00

22 lines
440 B
Go

package models
import (
"encoding/json"
"time"
)
type ListUser struct {
IdUser int64 `json:"id_user"`
NipUser string `json:"nip_user"`
NamaUser string `json:"nama_user"`
IdPangGol uint `json:"id_pang_gol"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// ToJSON encode list_user struct to json
func (u *ListUser) ToJSON() []byte {
str, _ := json.Marshal(u)
return str
}