Documentation
¶
Index ¶
- Constants
- func Get(ctx *app.Ctx, query url.Values) (app.ListModel, error)
- func GetByIDHandler(c *fiber.Ctx) error
- func GetListHandler(c *fiber.Ctx) error
- func GetListRekapHandler(c *fiber.Ctx) error
- func GetRekap(ctx *app.Ctx, query url.Values) (app.ListModel, error)
- func GetStatusDispoByIDHandler(c *fiber.Ctx) error
- func IDInSlice(a int64, list []SuratDispo) bool
- func PartialyUpdateByID(ctx *app.Ctx, id string, param *ParamPartialyUpdate) error
- func PartialyUpdateByIDHandler(c *fiber.Ctx) error
- func UpdateStatusSelesaiDispo(ctx *app.Ctx, id string) error
- type JobPositionList
- type Mengerjakan
- type ParamCreate
- type ParamDelete
- type ParamPartialyUpdate
- type ParamUpdate
- type StatusDispo
- type StatusSuratDispo
- type StatusSuratDispoNext
- type SuratDispo
- type SuratMasuk
- type Tanggapan
Constants ¶
View Source
const EndPoint = "surat_masuk"
Variables ¶
This section is empty.
Functions ¶
func GetByIDHandler ¶
func GetListHandler ¶
func GetListRekapHandler ¶
func IDInSlice ¶
func IDInSlice(a int64, list []SuratDispo) bool
func PartialyUpdateByID ¶
func PartialyUpdateByID(ctx *app.Ctx, id string, param *ParamPartialyUpdate) error
Types ¶
type JobPositionList ¶
type JobPositionList struct {
app.ListModel
Results []SuratMasuk `json:"results"`
}
type Mengerjakan ¶
type Mengerjakan struct {
db.Model
ID db.NullInt64 `json:"-" db:"ms.pms_id" gorm:"column:pms_id;primaryKey;autoIncrement" form:"id"`
PdfId db.NullInt64 `json:"-" db:"ms.pms_pdf_id" gorm:"column:pms_pdf_id"`
DkNik db.NullInt64 `json:"-" db:"ms.pms_dk_nik" gorm:"column:pms_dk_nik"`
FullName db.NullString `json:"fullname" db:"k.dk_fullname" gorm:"-" form:"fullname"`
JobPosition db.NullString `json:"job_position" db:"k.dk_jabatan" gorm:"-" form:"job_position"`
JobLevel db.NullString `json:"job_level" db:"k.dk_pangkat" gorm:"-" form:"job_level"`
Email db.NullString `json:"email" db:"k.dk_email" gorm:"-" form:"email"`
}
func (*Mengerjakan) SetFilter ¶
func (sd *Mengerjakan) SetFilter()
func (*Mengerjakan) SetRelation ¶
func (sd *Mengerjakan) SetRelation()
func (*Mengerjakan) SetSort ¶
func (sd *Mengerjakan) SetSort()
func (Mengerjakan) TableAliasName ¶
func (Mengerjakan) TableAliasName() string
func (Mengerjakan) TableName ¶
func (Mengerjakan) TableName() string
func (Mengerjakan) TableVersion ¶
func (Mengerjakan) TableVersion() string
type ParamCreate ¶
type ParamCreate struct {
SuratMasuk
NoAgenda db.NullString `` /* 158-byte string literal not displayed */
NoSurat db.NullString `` /* 157-byte string literal not displayed */
TglMasuk db.NullString `` /* 158-byte string literal not displayed */
TglSurat db.NullString `` /* 158-byte string literal not displayed */
SifatBerkas db.NullString `` /* 161-byte string literal not displayed */
Indeks db.NullString `` /* 155-byte string literal not displayed */
Lampiran db.NullString `` /* 157-byte string literal not displayed */
BCtu *db.NullInt64 `` /* 166-byte string literal not displayed */
TglCtu db.NullString `` /* 164-byte string literal not displayed */
BITu *db.NullInt64 `` /* 166-byte string literal not displayed */
TglITu db.NullString `` /* 164-byte string literal not displayed */
BPst *db.NullInt64 `` /* 166-byte string literal not displayed */
TglPst db.NullString `` /* 164-byte string literal not displayed */
JenisSurat db.NullString `` /* 160-byte string literal not displayed */
}
type ParamDelete ¶
type ParamDelete struct {
SuratMasuk
Reason db.NullString `json:"reason" gorm:"-" validate:"required" form:"reason"`
}
type ParamPartialyUpdate ¶
type ParamPartialyUpdate struct {
SuratMasuk
NoAgenda db.NullString `` /* 152-byte string literal not displayed */
NoSurat db.NullString `` /* 151-byte string literal not displayed */
TglMasuk db.NullString `` /* 152-byte string literal not displayed */
TglSurat db.NullString `` /* 152-byte string literal not displayed */
SifatBerkas db.NullString `` /* 155-byte string literal not displayed */
Indeks db.NullString `` /* 149-byte string literal not displayed */
Lampiran db.NullString `` /* 151-byte string literal not displayed */
BCtu *db.NullInt64 `` /* 160-byte string literal not displayed */
TglCtu db.NullString `` /* 158-byte string literal not displayed */
BITu *db.NullInt64 `` /* 160-byte string literal not displayed */
TglITu db.NullString `` /* 158-byte string literal not displayed */
BPst *db.NullInt64 `` /* 160-byte string literal not displayed */
TglPst db.NullString `` /* 158-byte string literal not displayed */
Reason db.NullString `json:"reason" gorm:"-" validate:"required" form:"reason"`
}
type ParamUpdate ¶
type ParamUpdate struct {
ParamCreate
Reason db.NullString `json:"reason" gorm:"-" validate:"required" form:"reason"`
}
type StatusDispo ¶
type StatusDispo struct {
db.Model
ID db.NullInt64 `` /* 210-byte string literal not displayed */
NoAgenda db.NullString `` /* 217-byte string literal not displayed */
TglMasuk db.NullDate `` /* 217-byte string literal not displayed */
TglSurat db.NullDate `` /* 217-byte string literal not displayed */
Indeks db.NullString `` /* 214-byte string literal not displayed */
DariPmkName db.NullString `` /* 222-byte string literal not displayed */
DariPmkID db.NullInt64 `` /* 228-byte string literal not displayed */
UntukUserFlag db.NullBool `` /* 225-byte string literal not displayed */
UntukUserID db.NullInt64 `` /* 225-byte string literal not displayed */
UntukUserName db.NullString `` /* 209-byte string literal not displayed */
UntukPmkID db.NullInt64 `` /* 228-byte string literal not displayed */
SifatBerkas db.NullString `` /* 220-byte string literal not displayed */
Lampiran db.NullString `` /* 216-byte string literal not displayed */
NoSurat db.NullString `` /* 216-byte string literal not displayed */
Keyword db.NullString `` /* 215-byte string literal not displayed */
BCtu db.NullInt64 `` /* 225-byte string literal not displayed */
TglCtu db.NullDate `` /* 223-byte string literal not displayed */
BITu db.NullInt64 `` /* 225-byte string literal not displayed */
TglITu db.NullDate `` /* 223-byte string literal not displayed */
BPst db.NullInt64 `` /* 225-byte string literal not displayed */
TglPst db.NullDate `` /* 223-byte string literal not displayed */
StatusRetensiSurat db.NullString `` /* 228-byte string literal not displayed */
Barcode db.NullString `` /* 215-byte string literal not displayed */
Hal db.NullText `` /* 215-byte string literal not displayed */
SelesaiStatus db.NullBool `` /* 223-byte string literal not displayed */
Selesai db.NullText `` /* 227-byte string literal not displayed */
SelesaiTgl db.NullDate `` /* 220-byte string literal not displayed */
SelesaiBy db.NullString `` /* 219-byte string literal not displayed */
SelesaiFileName db.NullString `` /* 221-byte string literal not displayed */
SelesaiFileFile *multipart.FileHeader `` /* 209-byte string literal not displayed */
SelesaiFileNameAsli db.NullString `` /* 209-byte string literal not displayed */
IsSelesaiFileIsURL db.NullBool `` /* 209-byte string literal not displayed */
TglKirim db.NullDate `` /* 217-byte string literal not displayed */
IsReadByHeadOffice db.NullBool `` /* 226-byte string literal not displayed */
ReadByHeadOfficeDate db.NullDate `` /* 227-byte string literal not displayed */
IsReadBySecretary db.NullBool `` /* 226-byte string literal not displayed */
ReadBySecretaryDate db.NullDate `` /* 227-byte string literal not displayed */
Tanggapan db.NullText `` /* 225-byte string literal not displayed */
TanggapanTgl db.NullDate `` /* 222-byte string literal not displayed */
TanggapanUserID db.NullInt64 `` /* 226-byte string literal not displayed */
TanggapanUserName db.NullInt64 `` /* 209-byte string literal not displayed */
TanggapanJobTitle db.NullString `` /* 228-byte string literal not displayed */
TanggapanFileName db.NullString `` /* 223-byte string literal not displayed */
TanggapanFileFile *multipart.FileHeader `` /* 209-byte string literal not displayed */
JenisSurat db.NullString `` /* 219-byte string literal not displayed */
Ocr db.NullText `` /* 211-byte string literal not displayed */
ScanFileName db.NullString `` /* 217-byte string literal not displayed */
ScanFileNameAsli db.NullString `` /* 209-byte string literal not displayed */
ScanFileFile *multipart.FileHeader `` /* 209-byte string literal not displayed */
IsScanFileIsURL db.NullBool `` /* 209-byte string literal not displayed */
Kabinet db.NullString `` /* 215-byte string literal not displayed */
KabinetKet db.NullString `` /* 226-byte string literal not displayed */
CreatedByUserID db.NullInt64 `` /* 172-byte string literal not displayed */
CreatedByUserName db.NullString `` /* 152-byte string literal not displayed */
Disposisi []StatusSuratDispo `` /* 217-byte string literal not displayed */
}
func GetStatusDispoByID ¶
func (*StatusDispo) SetFilter ¶
func (jp *StatusDispo) SetFilter()
func (*StatusDispo) SetRelation ¶
func (jp *StatusDispo) SetRelation()
func (*StatusDispo) SetSort ¶
func (jp *StatusDispo) SetSort()
func (StatusDispo) TableAliasName ¶
func (StatusDispo) TableAliasName() string
func (StatusDispo) TableName ¶
func (StatusDispo) TableName() string
type StatusSuratDispo ¶
type StatusSuratDispo struct {
db.Model
ID db.NullInt64 `` /* 268-byte string literal not displayed */
PDFID db.NullInt64 `` /* 267-byte string literal not displayed */
PsmID db.NullInt64 `` /* 267-byte string literal not displayed */
DariPmkID db.NullInt64 `` /* 281-byte string literal not displayed */
UntukPmkID db.NullInt64 `` /* 286-byte string literal not displayed */
UntukUserFlag db.NullBool `` /* 283-byte string literal not displayed */
UntukUserID db.NullInt64 `` /* 283-byte string literal not displayed */
UntukUserName db.NullString `` /* 280-byte string literal not displayed */
Dispo db.NullString `` /* 286-byte string literal not displayed */
TglDisposisi db.NullDateTime `` /* 279-byte string literal not displayed */
AksesBaca db.NullBool `` /* 276-byte string literal not displayed */
AksesDispo db.NullBool `` /* 277-byte string literal not displayed */
LevelDispo db.NullInt64 `` /* 277-byte string literal not displayed */
IsStatusSelesai db.NullBool `` /* 281-byte string literal not displayed */
Selesai db.NullString `` /* 285-byte string literal not displayed */
SelesaiTgl db.NullDate `` /* 278-byte string literal not displayed */
SelesaiFile db.NullString `` /* 279-byte string literal not displayed */
SelesaiFileAsli db.NullString `` /* 283-byte string literal not displayed */
Baca db.NullString `` /* 284-byte string literal not displayed */
BacaSek db.NullString `` /* 284-byte string literal not displayed */
BacaTgl db.NullString `` /* 285-byte string literal not displayed */
BacaSekTgl db.NullString `` /* 285-byte string literal not displayed */
AccHead db.NullString `` /* 285-byte string literal not displayed */
SekCreate db.NullString `` /* 288-byte string literal not displayed */
PltCreate db.NullString `` /* 281-byte string literal not displayed */
Disposisi []StatusSuratDispoNext `` /* 275-byte string literal not displayed */
Tanggapan []Tanggapan `` /* 275-byte string literal not displayed */
TotalTanggapan db.NullInt64 `` /* 126-byte string literal not displayed */
Mengerjakan []Mengerjakan `` /* 281-byte string literal not displayed */
}
func (*StatusSuratDispo) SetFilter ¶
func (sd *StatusSuratDispo) SetFilter()
func (*StatusSuratDispo) SetRelation ¶
func (sd *StatusSuratDispo) SetRelation()
func (*StatusSuratDispo) SetSort ¶
func (sd *StatusSuratDispo) SetSort()
func (StatusSuratDispo) TableAliasName ¶
func (StatusSuratDispo) TableAliasName() string
func (StatusSuratDispo) TableName ¶
func (StatusSuratDispo) TableName() string
type StatusSuratDispoNext ¶
type StatusSuratDispoNext struct {
db.Model
ID db.NullInt64 `` /* 268-byte string literal not displayed */
PDFID db.NullInt64 `` /* 267-byte string literal not displayed */
PsmID db.NullInt64 `` /* 267-byte string literal not displayed */
DariPmkID db.NullInt64 `` /* 281-byte string literal not displayed */
UntukPmkID db.NullInt64 `` /* 286-byte string literal not displayed */
UntukUserFlag db.NullBool `` /* 283-byte string literal not displayed */
UntukUserID db.NullInt64 `` /* 283-byte string literal not displayed */
UntukUserName db.NullString `` /* 280-byte string literal not displayed */
Dispo db.NullString `` /* 286-byte string literal not displayed */
TglDisposisi db.NullDateTime `` /* 279-byte string literal not displayed */
AksesBaca db.NullBool `` /* 276-byte string literal not displayed */
AksesDispo db.NullBool `` /* 277-byte string literal not displayed */
LevelDispo db.NullInt64 `` /* 277-byte string literal not displayed */
IsStatusSelesai db.NullBool `` /* 281-byte string literal not displayed */
Selesai db.NullString `` /* 285-byte string literal not displayed */
SelesaiTgl db.NullDate `` /* 278-byte string literal not displayed */
SelesaiFile db.NullString `` /* 279-byte string literal not displayed */
SelesaiFileAsli db.NullString `` /* 283-byte string literal not displayed */
Baca db.NullString `` /* 284-byte string literal not displayed */
BacaSek db.NullString `` /* 284-byte string literal not displayed */
BacaTgl db.NullString `` /* 285-byte string literal not displayed */
BacaSekTgl db.NullString `` /* 285-byte string literal not displayed */
AccHead db.NullString `` /* 285-byte string literal not displayed */
SekCreate db.NullString `` /* 288-byte string literal not displayed */
PltCreate db.NullString `` /* 281-byte string literal not displayed */
Disposisi []StatusSuratDispoNext `` /* 275-byte string literal not displayed */
Tanggapan []Tanggapan `` /* 275-byte string literal not displayed */
TotalTanggapan db.NullInt64 `` /* 126-byte string literal not displayed */
Mengerjakan []Mengerjakan `` /* 281-byte string literal not displayed */
}
NEXT AGAR TIDAK ADA FILTER DIS LEVEL
func (*StatusSuratDispoNext) SetFilter ¶
func (sd *StatusSuratDispoNext) SetFilter()
func (*StatusSuratDispoNext) SetRelation ¶
func (sd *StatusSuratDispoNext) SetRelation()
func (*StatusSuratDispoNext) SetSort ¶
func (sd *StatusSuratDispoNext) SetSort()
func (StatusSuratDispoNext) TableAliasName ¶
func (StatusSuratDispoNext) TableAliasName() string
func (StatusSuratDispoNext) TableName ¶
func (StatusSuratDispoNext) TableName() string
type SuratDispo ¶
type SuratDispo struct {
db.Model
ID db.NullInt64 `` /* 264-byte string literal not displayed */
PsmID db.NullInt64 `` /* 263-byte string literal not displayed */
DariPmkID db.NullInt64 `` /* 263-byte string literal not displayed */
UntukPmkID db.NullInt64 `` /* 282-byte string literal not displayed */
UntukUserFlag db.NullBool `` /* 279-byte string literal not displayed */
UntukUserID db.NullInt64 `` /* 279-byte string literal not displayed */
UntukUserName db.NullString `` /* 276-byte string literal not displayed */
Dispo db.NullString `` /* 282-byte string literal not displayed */
TglDisposisi db.NullDateTime `` /* 275-byte string literal not displayed */
AksesBaca db.NullBool `` /* 272-byte string literal not displayed */
AksesDispo db.NullBool `` /* 273-byte string literal not displayed */
LevelDispo db.NullInt64 `` /* 273-byte string literal not displayed */
IsStatusSelesai db.NullBool `` /* 277-byte string literal not displayed */
SelesaiTgl db.NullDate `` /* 274-byte string literal not displayed */
SelesaiFileName db.NullString `` /* 275-byte string literal not displayed */
IsSudahDispo db.NullBool `` /* 263-byte string literal not displayed */
IsSudahDitanggapi db.NullBool `` /* 229-byte string literal not displayed */
TotalTanggapan db.NullInt64 `json:"total_tanggapan" db:"(SELECT COUNT(*) FROM pdam_t_tanggapan where ptt_pdf_id = d.pdf_id)" gorm:"-"`
IsReadByHeadOffice db.NullBool `` /* 280-byte string literal not displayed */
IsReadBySecretary db.NullBool `` /* 280-byte string literal not displayed */
ReadByHeadOfficeDate db.NullDateTime `` /* 281-byte string literal not displayed */
ReadBySecretaryDate db.NullDateTime `` /* 281-byte string literal not displayed */
}
func (*SuratDispo) SetFilter ¶
func (sd *SuratDispo) SetFilter()
func (*SuratDispo) SetRelation ¶
func (sd *SuratDispo) SetRelation()
func (*SuratDispo) SetSort ¶
func (sd *SuratDispo) SetSort()
func (SuratDispo) TableAliasName ¶
func (SuratDispo) TableAliasName() string
func (SuratDispo) TableName ¶
func (SuratDispo) TableName() string
func (SuratDispo) TableVersion ¶
func (SuratDispo) TableVersion() string
type SuratMasuk ¶
type SuratMasuk struct {
db.Model
ID db.NullInt64 `` /* 210-byte string literal not displayed */
NoAgenda db.NullString `` /* 217-byte string literal not displayed */
TglMasuk db.NullDate `` /* 217-byte string literal not displayed */
TglSurat db.NullDate `` /* 217-byte string literal not displayed */
Indeks db.NullString `` /* 214-byte string literal not displayed */
DariPmkName db.NullString `` /* 222-byte string literal not displayed */
DariPmkID db.NullInt64 `` /* 228-byte string literal not displayed */
UntukUserFlag db.NullBool `` /* 225-byte string literal not displayed */
UntukUserID db.NullInt64 `` /* 225-byte string literal not displayed */
UntukUserName db.NullString `` /* 152-byte string literal not displayed */
UntukPmkID db.NullInt64 `` /* 228-byte string literal not displayed */
SifatBerkas db.NullString `` /* 220-byte string literal not displayed */
Lampiran db.NullString `` /* 216-byte string literal not displayed */
NoSurat db.NullString `` /* 216-byte string literal not displayed */
Keyword db.NullString `` /* 215-byte string literal not displayed */
BCtu db.NullInt64 `` /* 225-byte string literal not displayed */
TglCtu db.NullDate `` /* 223-byte string literal not displayed */
BITu db.NullInt64 `` /* 225-byte string literal not displayed */
TglITu db.NullDate `` /* 223-byte string literal not displayed */
BPst db.NullInt64 `` /* 225-byte string literal not displayed */
TglPst db.NullDate `` /* 223-byte string literal not displayed */
StatusRetensiSurat db.NullString `` /* 228-byte string literal not displayed */
Barcode db.NullText `` /* 215-byte string literal not displayed */
Hal db.NullText `` /* 215-byte string literal not displayed */
IsStatusSelesai db.NullBool `` /* 223-byte string literal not displayed */
Selesai db.NullText `` /* 227-byte string literal not displayed */
SelesaiTgl db.NullDate `` /* 220-byte string literal not displayed */
SelesaiBy db.NullString `` /* 219-byte string literal not displayed */
SelesaiFileName db.NullString `` /* 221-byte string literal not displayed */
SelesaiFileFile *multipart.FileHeader `` /* 209-byte string literal not displayed */
SelesaiFileNameAsli db.NullString `` /* 209-byte string literal not displayed */
IsSelesaiFileIsURL db.NullBool `` /* 209-byte string literal not displayed */
TglKirim db.NullDate `` /* 217-byte string literal not displayed */
IsReadByHeadOffice db.NullBool `` /* 226-byte string literal not displayed */
ReadByHeadOfficeDate db.NullDateTime `` /* 227-byte string literal not displayed */
IsReadBySecretary db.NullBool `` /* 226-byte string literal not displayed */
ReadBySecretaryDate db.NullDateTime `` /* 227-byte string literal not displayed */
Tanggapan db.NullText `` /* 225-byte string literal not displayed */
TanggapanTgl db.NullDate `` /* 222-byte string literal not displayed */
TanggapanUserID db.NullInt64 `` /* 226-byte string literal not displayed */
TanggapanUserName db.NullInt64 `` /* 209-byte string literal not displayed */
TanggapanJobTitle db.NullString `` /* 228-byte string literal not displayed */
TanggapanFileName db.NullString `` /* 223-byte string literal not displayed */
TanggapanFileFile *multipart.FileHeader `` /* 209-byte string literal not displayed */
JenisSurat db.NullString `` /* 219-byte string literal not displayed */
Ocr db.NullText `` /* 211-byte string literal not displayed */
ScanFileName db.NullString `` /* 217-byte string literal not displayed */
ScanFileNameAsli db.NullString `` /* 209-byte string literal not displayed */
ScanFileFile *multipart.FileHeader `` /* 209-byte string literal not displayed */
IsScanFileIsURL db.NullBool `` /* 209-byte string literal not displayed */
Kabinet db.NullString `` /* 215-byte string literal not displayed */
KabinetKet db.NullString `` /* 226-byte string literal not displayed */
CreatedByUserID db.NullInt64 `` /* 172-byte string literal not displayed */
CreatedByUserName db.NullString `` /* 152-byte string literal not displayed */
Disposisi []SuratDispo `` /* 217-byte string literal not displayed */
IsSudahDispo db.NullBool `` /* 209-byte string literal not displayed */
IsSudahDitanggapi db.NullBool `` /* 152-byte string literal not displayed */
}
func (*SuratMasuk) SetFilter ¶
func (jp *SuratMasuk) SetFilter()
func (*SuratMasuk) SetRelation ¶
func (jp *SuratMasuk) SetRelation()
func (*SuratMasuk) SetSort ¶
func (jp *SuratMasuk) SetSort()
func (SuratMasuk) TableAliasName ¶
func (SuratMasuk) TableAliasName() string
func (SuratMasuk) TableName ¶
func (SuratMasuk) TableName() string
func (SuratMasuk) TableVersion ¶
func (SuratMasuk) TableVersion() string
type Tanggapan ¶
type Tanggapan struct {
db.Model
ID db.NullInt64 `` /* 198-byte string literal not displayed */
PdfID db.NullInt64 `` /* 197-byte string literal not displayed */
PmkID db.NullInt64 `` /* 216-byte string literal not displayed */
UserFlag db.NullBool `` /* 213-byte string literal not displayed */
UserID db.NullInt64 `` /* 213-byte string literal not displayed */
UntukUserName db.NullString `` /* 210-byte string literal not displayed */
Tgl db.NullDate `` /* 203-byte string literal not displayed */
Msg db.NullString `` /* 202-byte string literal not displayed */
}
func (*Tanggapan) SetRelation ¶
func (sd *Tanggapan) SetRelation()
func (Tanggapan) TableAliasName ¶
func (Tanggapan) TableVersion ¶
Click to show internal directories.
Click to hide internal directories.