Documentation ¶
Index ¶
- type AddressFromDak
- type Announcement
- type AnnouncementCreation
- type Credentials
- type District
- type DistrictRequest
- type DistrictResponse
- type JwtAuthModel
- type JwtRtModel
- type JwtTokenDetails
- type Log
- type LogMonth
- type LogUserMonth
- type LogUserYear
- type LogYear
- type Province
- type ProvinceResponse
- type RefreshToken
- type Regency
- type RegencyRequest
- type RegencyResponse
- type ResetPassword
- type ResetPasswordRequest
- type SignUp
- type Trademark
- type TrademarkClass
- type TrademarkEditRequest
- type TrademarkFromDJKI
- type TrademarkRegistrationRequest
- type TrademarkSearch
- type TrademarkSimilarity
- type TrademarkStatus
- type TrademarkStatusRequest
- type User
- type UserPasswordRequest
- type UserProfilesRequest
- type UserRoles
- type UserRolesRequest
- type Village
- type VillageRequest
- type VillageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressFromDak ¶
type AddressFromDak struct {
Id string `db:"address" json:"address" validate:"required"`
}
type Announcement ¶
type Announcement struct { Id int `db:"id" json:"id" validate:"required,uuid"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` CreatedBy uuid.UUID `db:"created_by" json:"created_by"` Title string `db:"title" json:"title" validate:"required"` Description string `db:"description" json:"description" validate:"required"` Image sql.NullString `db:"image" json:"image"` }
type AnnouncementCreation ¶
type AnnouncementCreation struct { Title string `db:"title" json:"title" validate:"required"` Description string `db:"description" json:"description" validate:"required"` Image sql.NullString `db:"image" json:"image"` }
type Credentials ¶
type DistrictRequest ¶
type DistrictResponse ¶
type JwtAuthModel ¶
type JwtRtModel ¶
type JwtTokenDetails ¶
type LogUserMonth ¶
type LogUserYear ¶
type ProvinceResponse ¶
type RefreshToken ¶
type RefreshToken struct {
RefreshToken string `json:"refresh_token" validate:"required"`
}
type RegencyRequest ¶
type RegencyRequest struct {
ProvinceId int `db:"province_id" param:"province_id"`
}
type RegencyResponse ¶
type ResetPassword ¶
type ResetPasswordRequest ¶
type ResetPasswordRequest struct {
Email string `db:"email" json:"email" validate:"required,lte=255"`
}
type SignUp ¶
type SignUp struct { FirstName string `db:"first_name" json:"first_name" validate:"required,lte=255"` LastName string `db:"last_name" json:"last_name" validate:"required,lte=255"` Email string `db:"email" json:"email" validate:"required,lte=255"` Password string `db:"password" json:"password" validate:"required,lte=255"` Roles int16 `db:"roles" json:"roles"` Status int16 `db:"status" json:"status" ` Verified int16 `db:"verified" json:"verified"` CardNumber int64 `db:"card_number" json:"card_number" validate:"required"` Address string `db:"address" json:"address" validate:"required"` DoB time.Time `db:"dob" json:"dob" validate:"required"` Sex int `db:"sex" json:"sex"` Village int `db:"village" json:"village" validate:"required"` District int `db:"district" json:"district" validate:"required"` Regency int `db:"regency" json:"regency" validate:"required"` Province int `db:"province" json:"province" validate:"required"` PostalCode int `db:"postal_code" json:"postal_code" validate:"required"` }
type Trademark ¶
type Trademark struct { ID uuid.UUID `db:"id" json:"id"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` ExpiredAt sql.NullTime `db:"expired_at" json:"expired_at"` CreatedBy uuid.UUID `db:"created_by" json:"created_by"` RegisterNumber string `db:"registration_number" json:"registration_number"` TrademarkName string `db:"trademark_name" json:"trademark_name"` Class int `db:"trademark_class" json:"trademark_class"` OwnerName string `db:"owner_name" json:"owner_name"` Address string `db:"address" json:"address"` Village int `db:"village" json:"village"` District int `db:"district" json:"district"` Regency int `db:"regency" json:"regency"` Province int `db:"province" json:"province"` Image string `db:"image" json:"image"` SMECertificate string `db:"sme_certificate" json:"sme_certificate"` RegisterSignature string `db:"register_signature" json:"register_signature"` ApprovedAt sql.NullTime `db:"approved_at" json:"approved_at"` ApprovedBy uuid.UUID `db:"approved_by" json:"approved_by"` File sql.NullString `db:"file" json:"file"` Status int `db:"status" json:"status"` Notes sql.NullString `db:"notes" json:"notes"` }
type TrademarkClass ¶
type TrademarkEditRequest ¶
type TrademarkEditRequest struct { ID uuid.UUID `form:"id" validate:"required"` TrademarkName string `form:"trademark_name" validate:"required"` Class int `form:"trademark_class" validate:"required"` OwnerName string `form:"owner_name" validate:"required"` Address string `form:"address" validate:"required"` Village int `form:"village" validate:"required"` District int `form:"district" validate:"required"` Regency int `form:"regency" validate:"required"` Province int `form:"province" validate:"required"` Image string `form:"image" validate:"required"` SMECertificate string `form:"sme_certificate" json:"sme_certificate"` RegisterSignature string `form:"register_signature" validate:"required"` }
type TrademarkFromDJKI ¶
type TrademarkFromDJKI struct {
Keyword string `query:"keyword" validate:"required"`
}
type TrademarkRegistrationRequest ¶
type TrademarkRegistrationRequest struct { TrademarkName string `form:"trademark_name" validate:"required"` Class int `form:"trademark_class" validate:"required"` OwnerName string `form:"owner_name" validate:"required"` Address string `form:"address" validate:"required"` Village int `form:"village" validate:"required"` District int `form:"district" validate:"required"` Regency int `form:"regency" validate:"required"` Province int `form:"province" validate:"required"` SMECertificate string `db:"sme_certificate" json:"sme_certificate"` RegisterSignature string `db:"register_signature" json:"register_signature"` Notes string `db:"notes" json:"notes"` }
type TrademarkSearch ¶
type TrademarkSearch struct { ID uuid.UUID `db:"id" json:"-"` CreatedAt time.Time `db:"created_at" json:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` ExpiredAt sql.NullTime `db:"expired_at" json:"expired_at"` CreatedBy uuid.UUID `db:"created_by" json:"-"` RegisterNumber string `db:"registration_number" json:"registration_number"` TrademarkName string `db:"trademark_name" json:"trademark_name"` Class int `db:"trademark_class" json:"trademark_class"` OwnerName string `db:"owner_name" json:"owner_name"` Address string `db:"address" json:"address"` Village int `db:"village" json:"village"` District int `db:"district" json:"district"` Regency int `db:"regency" json:"regency"` Province int `db:"province" json:"province"` Image string `db:"image" json:"image"` SMECertificate string `db:"sme_certificate" json:"-"` RegisterSignature string `db:"register_signature" json:"-"` ApprovedAt sql.NullTime `db:"approved_at" json:"approved_at"` ApprovedBy uuid.UUID `db:"approved_by" json:"-"` File sql.NullString `db:"file" json:"-"` Status int `db:"status" json:"status"` Notes sql.NullString `db:"notes" json:"-"` }
type TrademarkSimilarity ¶
type TrademarkStatus ¶
type TrademarkStatusRequest ¶
type User ¶
type User struct { ID uuid.UUID `db:"id" json:"id"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` Email string `db:"email" json:"email"` FirstName string `db:"first_name" json:"first_name"` LastName string `db:"last_name" json:"last_name"` Password string `db:"password" json:"-"` Roles int16 `db:"roles" json:"roles"` Status int16 `db:"status" json:"status"` Verified int16 `db:"verified" json:"verified"` CardNumber int64 `db:"card_number" json:"card_number"` Address string `db:"address" json:"address"` DoB time.Time `db:"dob" json:"dob"` Sex int `db:"sex" json:"sex"` Village int `db:"village" json:"village"` District int `db:"district" json:"district"` Regency int `db:"regency" json:"regency"` Province int `db:"province" json:"province"` PostalCode int `db:"postal_code" json:"postal_code"` }
type UserPasswordRequest ¶
type UserProfilesRequest ¶
type UserProfilesRequest struct { Email string `db:"email" json:"email" validate:"required"` FirstName string `db:"first_name" json:"first_name" validate:"required"` LastName string `db:"last_name" json:"last_name" validate:"required"` Password string `db:"password" json:"-"` CardNumber int64 `db:"card_number" json:"card_number" validate:"required"` Address string `db:"address" json:"address" validate:"required"` DoB time.Time `db:"dob" json:"dob" validate:"required"` Sex int `db:"sex" json:"sex" validate:"required"` Village int `db:"village" json:"village" validate:"required"` District int `db:"district" json:"district" validate:"required"` Regency int `db:"regency" json:"regency" validate:"required"` Province int `db:"province" json:"province" validate:"required"` PostalCode int `db:"postal_code" json:"postal_code" validate:"required"` }
type UserRolesRequest ¶
type UserRolesRequest struct { ID uuid.UUID `db:"id" json:"id" validate:"required,uuid"` Password string `db:"password" json:"password" validate:"required"` Roles int16 `db:"roles" json:"roles" validate:"required"` Status int16 `db:"status" json:"status" validate:"required"` Verified int16 `db:"verified" json:"verified" validate:"required"` }
type Village ¶
type Village struct { Id int `db:"id" json:"id" validate:"required"` ProvinceId int `db:"province_id" json:"province_id" validate:"required"` RegencyId int `db:"regency_id" json:"regency_id" validate:"required"` DistrictId int `db:"district_id" json:"district_id" validate:"required"` Name string `db:"name" json:"name" validate:"required"` }
type VillageRequest ¶
type VillageResponse ¶
Click to show internal directories.
Click to hide internal directories.