kontenhumas-be/app/module/users/response/users.response.go

49 lines
1.8 KiB
Go
Raw Normal View History

2025-09-28 01:53:09 +00:00
package response
import "time"
type UsersResponse struct {
ID uint `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Fullname string `json:"fullname"`
Address *string `json:"address"`
PhoneNumber *string `json:"phoneNumber"`
WorkType *string `json:"workType"`
GenderType *string `json:"genderType"`
IdentityType *string `json:"identityType"`
IdentityNumber *string `json:"identityNumber"`
DateOfBirth *string `json:"dateOfBirth"`
LastEducation *string `json:"lastEducation"`
KeycloakId *string `json:"keycloakId"`
UserRoleId uint `json:"userRoleId"`
UserLevelId uint `json:"userLevelId"`
UserLevelGroup string `json:"userLevelGroup"`
StatusId *int `json:"statusId"`
CreatedById *uint `json:"createdById"`
ProfilePicturePath *string `json:"profilePicturePath"`
IsActive *bool `json:"isActive"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
2025-10-02 02:50:11 +00:00
// Approval Workflow Info
ApprovalWorkflowInfo *ApprovalWorkflowInfo `json:"approvalWorkflowInfo,omitempty"`
}
type ApprovalWorkflowInfo struct {
HasWorkflowSetup bool `json:"hasWorkflowSetup"`
DefaultWorkflowId *uint `json:"defaultWorkflowId,omitempty"`
DefaultWorkflowName *string `json:"defaultWorkflowName,omitempty"`
RequiresApproval *bool `json:"requiresApproval,omitempty"`
AutoPublishArticles *bool `json:"autoPublishArticles,omitempty"`
IsApprovalActive *bool `json:"isApprovalActive,omitempty"`
2025-09-28 01:53:09 +00:00
}
type ParetoLoginResponse struct {
AccessToken string `json:"accessToken"`
}
type VisitorStatistic struct {
TotalVisitor string `json:"accessToken"`
}