model

package
v0.0.0-...-f140749 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameAttendance = "attendance"
View Source
const TableNameAttendanceResult = "attendance_result"
View Source
const TableNameAuthGroup = "auth_group"
View Source
const TableNameAuthGroupPermissions = "auth_group_permissions"
View Source
const TableNameAuthPermission = "auth_permission"
View Source
const TableNameAuthUser = "auth_user"
View Source
const TableNameAuthUserGroups = "auth_user_groups"
View Source
const TableNameAuthUserUserPermissions = "auth_user_user_permissions"
View Source
const TableNameCollectDoc = "collect_doc"
View Source
const TableNameCollectDocDemo = "collect_doc_demo"
View Source
const TableNameCollectDocImportant = "collect_doc_important"
View Source
const TableNameCollectDocParams = "collect_doc_params"
View Source
const TableNameCollectDocResult = "collect_doc_result"
View Source
const TableNameCollectEvent = "collect_event"
View Source
const TableNameConfigDetail = "config_detail"
View Source
const TableNameConfigDetailChangeHistory = "config_detail_change_history"
View Source
const TableNameConfigGroup = "config_group"
View Source
const TableNameDjangoAdminLog = "django_admin_log"
View Source
const TableNameDjangoContentType = "django_content_type"
View Source
const TableNameDjangoMigrations = "django_migrations"
View Source
const TableNameDjangoSession = "django_session"
View Source
const TableNameDocGroup = "doc_group"
View Source
const TableNameLdapGroup = "ldap_group"
View Source
const TableNameProject = "project"
View Source
const TableNameReportGitcommitinfo = "report_gitcommitinfo"
View Source
const TableNameReportGituserFix = "report_gituser_fix"
View Source
const TableNameRole = "role"
View Source
const TableNameRoleLdapGroup = "role_ldap_group"
View Source
const TableNameRoleMenu = "role_menu"
View Source
const TableNameSysCode = "sys_code"
View Source
const TableNameSysMenu = "sys_menu"
View Source
const TableNameSysParam = "sys_param"
View Source
const TableNameTemplateEventLog = "template_event_log"
View Source
const TableNameUserAccount = "user_account"
View Source
const TableNameUserChangeHistory = "user_change_history"
View Source
const TableNameUserRole = "user_role"

Variables

This section is empty.

Functions

This section is empty.

Types

type Attendance

type Attendance struct {
	ID             string  `gorm:"column:id;primaryKey" json:"id"`
	AttendanceTime *string `gorm:"column:attendance_time" json:"attendance_time"`
	UserID         *string `gorm:"column:user_id" json:"user_id"`
}

Attendance mapped from table <attendance>

func (*Attendance) PrimaryKey

func (*Attendance) PrimaryKey() []string

func (*Attendance) TableName

func (*Attendance) TableName() string

TableName Attendance's table name

type AttendanceResult

type AttendanceResult struct {
	ID      string  `gorm:"column:id;primaryKey" json:"id"`
	UserID  *string `gorm:"column:user_id" json:"user_id"`
	Onduty  *string `gorm:"column:onduty" json:"onduty"`
	Offduty *string `gorm:"column:offduty" json:"offduty"`
	Day     *string `gorm:"column:day" json:"day"`
}

AttendanceResult mapped from table <attendance_result>

func (*AttendanceResult) PrimaryKey

func (*AttendanceResult) PrimaryKey() []string

func (*AttendanceResult) TableName

func (*AttendanceResult) TableName() string

TableName AttendanceResult's table name

type AuthGroup

type AuthGroup struct {
	ID   int32  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name string `gorm:"column:name;not null" json:"name"`
}

AuthGroup mapped from table <auth_group>

func (*AuthGroup) PrimaryKey

func (*AuthGroup) PrimaryKey() []string

func (*AuthGroup) TableName

func (*AuthGroup) TableName() string

TableName AuthGroup's table name

type AuthGroupPermissions

type AuthGroupPermissions struct {
	ID           int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	GroupID      int32 `gorm:"column:group_id;not null" json:"group_id"`
	PermissionID int32 `gorm:"column:permission_id;not null" json:"permission_id"`
}

AuthGroupPermissions mapped from table <auth_group_permissions>

func (*AuthGroupPermissions) PrimaryKey

func (*AuthGroupPermissions) PrimaryKey() []string

func (*AuthGroupPermissions) TableName

func (*AuthGroupPermissions) TableName() string

TableName AuthGroupPermissions's table name

type AuthPermission

type AuthPermission struct {
	ID            int32  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name          string `gorm:"column:name;not null" json:"name"`
	ContentTypeID int32  `gorm:"column:content_type_id;not null" json:"content_type_id"`
	Codename      string `gorm:"column:codename;not null" json:"codename"`
}

AuthPermission mapped from table <auth_permission>

func (*AuthPermission) PrimaryKey

func (*AuthPermission) PrimaryKey() []string

func (*AuthPermission) TableName

func (*AuthPermission) TableName() string

TableName AuthPermission's table name

type AuthUser

type AuthUser struct {
	ID          int32      `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Password    string     `gorm:"column:password;not null" json:"password"`
	LastLogin   *time.Time `gorm:"column:last_login" json:"last_login"`
	IsSuperuser bool       `gorm:"column:is_superuser;not null" json:"is_superuser"`
	Username    string     `gorm:"column:username;not null" json:"username"`
	FirstName   string     `gorm:"column:first_name;not null" json:"first_name"`
	LastName    string     `gorm:"column:last_name;not null" json:"last_name"`
	Email       string     `gorm:"column:email;not null" json:"email"`
	IsStaff     bool       `gorm:"column:is_staff;not null" json:"is_staff"`
	IsActive    bool       `gorm:"column:is_active;not null" json:"is_active"`
	DateJoined  time.Time  `gorm:"column:date_joined;not null" json:"date_joined"`
}

AuthUser mapped from table <auth_user>

func (*AuthUser) PrimaryKey

func (*AuthUser) PrimaryKey() []string

func (*AuthUser) TableName

func (*AuthUser) TableName() string

TableName AuthUser's table name

type AuthUserGroups

type AuthUserGroups struct {
	ID      int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	UserID  int32 `gorm:"column:user_id;not null" json:"user_id"`
	GroupID int32 `gorm:"column:group_id;not null" json:"group_id"`
}

AuthUserGroups mapped from table <auth_user_groups>

func (*AuthUserGroups) PrimaryKey

func (*AuthUserGroups) PrimaryKey() []string

func (*AuthUserGroups) TableName

func (*AuthUserGroups) TableName() string

TableName AuthUserGroups's table name

type AuthUserUserPermissions

type AuthUserUserPermissions struct {
	ID           int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	UserID       int32 `gorm:"column:user_id;not null" json:"user_id"`
	PermissionID int32 `gorm:"column:permission_id;not null" json:"permission_id"`
}

AuthUserUserPermissions mapped from table <auth_user_user_permissions>

func (*AuthUserUserPermissions) PrimaryKey

func (*AuthUserUserPermissions) PrimaryKey() []string

func (*AuthUserUserPermissions) TableName

func (*AuthUserUserPermissions) TableName() string

TableName AuthUserUserPermissions's table name

type CollectDoc

type CollectDoc struct {
	CollectDocID string  `gorm:"column:collect_doc_id;primaryKey" json:"collect_doc_id"`
	Title        *string `gorm:"column:title" json:"title"`
	SubTitle     *string `gorm:"column:sub_title" json:"sub_title"`
	Type         *string `gorm:"column:type" json:"type"`
	ParentDir    *string `gorm:"column:parent_dir" json:"parent_dir"`
	Code         *string `gorm:"column:code" json:"code"`
	CodeDesc     *string `gorm:"column:code_desc" json:"code_desc"`
	OrderIndex   *int32  `gorm:"column:order_index" json:"order_index"`
	CreateTime   *string `gorm:"column:create_time" json:"create_time"`
	CreateUser   *string `gorm:"column:create_user" json:"create_user"`
	IsDelete     *string `gorm:"column:is_delete" json:"is_delete"`
	CodeResult   *string `gorm:"column:code_result" json:"code_result"`
}

CollectDoc mapped from table <collect_doc>

func (*CollectDoc) PrimaryKey

func (*CollectDoc) PrimaryKey() []string

func (*CollectDoc) TableName

func (*CollectDoc) TableName() string

TableName CollectDoc's table name

type CollectDocDemo

type CollectDocDemo struct {
	DocDemoID    string  `gorm:"column:doc_demo_id;primaryKey" json:"doc_demo_id"`
	CollectDocID *string `gorm:"column:collect_doc_id" json:"collect_doc_id"`
	Name         *string `gorm:"column:name" json:"name"`
	Code         *string `gorm:"column:code" json:"code"`
	OrderIndex   *int32  `gorm:"column:order_index" json:"order_index"`
	CodeResult   *string `gorm:"column:code_result" json:"code_result"`
}

CollectDocDemo mapped from table <collect_doc_demo>

func (*CollectDocDemo) PrimaryKey

func (*CollectDocDemo) PrimaryKey() []string

func (*CollectDocDemo) TableName

func (*CollectDocDemo) TableName() string

TableName CollectDocDemo's table name

type CollectDocImportant

type CollectDocImportant struct {
	DocImportantID string  `gorm:"column:doc_important_id;primaryKey" json:"doc_important_id"`
	CollectDocID   *string `gorm:"column:collect_doc_id" json:"collect_doc_id"`
	Name           *string `gorm:"column:name" json:"name"`
	OrderIndex     *int32  `gorm:"column:order_index" json:"order_index"`
}

CollectDocImportant mapped from table <collect_doc_important>

func (*CollectDocImportant) PrimaryKey

func (*CollectDocImportant) PrimaryKey() []string

func (*CollectDocImportant) TableName

func (*CollectDocImportant) TableName() string

TableName CollectDocImportant's table name

type CollectDocParams

type CollectDocParams struct {
	DocParamsID  string  `gorm:"column:doc_params_id;primaryKey" json:"doc_params_id"`
	CollectDocID *string `gorm:"column:collect_doc_id" json:"collect_doc_id"`
	Name         *string `gorm:"column:name" json:"name"`
	Desc         *string `gorm:"column:desc" json:"desc"`
	Type         *string `gorm:"column:type" json:"type"`
	Must         *string `gorm:"column:must" json:"must"`
	OrderIndex   *int32  `gorm:"column:order_index" json:"order_index"`
}

CollectDocParams mapped from table <collect_doc_params>

func (*CollectDocParams) PrimaryKey

func (*CollectDocParams) PrimaryKey() []string

func (*CollectDocParams) TableName

func (*CollectDocParams) TableName() string

TableName CollectDocParams's table name

type CollectDocResult

type CollectDocResult struct {
	DocResultID  string  `gorm:"column:doc_result_id;primaryKey" json:"doc_result_id"`
	CollectDocID *string `gorm:"column:collect_doc_id" json:"collect_doc_id"`
	Name         *string `gorm:"column:name" json:"name"`
	Desc         *string `gorm:"column:desc" json:"desc"`
	Type         *string `gorm:"column:type" json:"type"`
	Must         *string `gorm:"column:must" json:"must"`
	OrderIndex   *int32  `gorm:"column:order_index" json:"order_index"`
}

CollectDocResult mapped from table <collect_doc_result>

func (*CollectDocResult) PrimaryKey

func (*CollectDocResult) PrimaryKey() []string

func (*CollectDocResult) TableName

func (*CollectDocResult) TableName() string

TableName CollectDocResult's table name

type CollectEvent

type CollectEvent struct {
	EventID      string     `gorm:"column:event_id;primaryKey" json:"event_id"`
	Group_       *string    `gorm:"column:group" json:"group"`
	Tag          *string    `gorm:"column:tag" json:"tag"`
	FromService  *string    `gorm:"column:from_service" json:"from_service"`
	ToService    *string    `gorm:"column:to_service" json:"to_service"`
	Params       *string    `gorm:"column:params" json:"params"`
	Success      *string    `gorm:"column:success" json:"success"`
	Result       *string    `gorm:"column:result" json:"result"`
	Msg          *string    `gorm:"column:msg" json:"msg"`
	CreateUserID *string    `gorm:"column:create_user_id" json:"create_user_id"`
	CreateTime   *time.Time `gorm:"column:create_time" json:"create_time"`
	ExcuteTime   *time.Time `gorm:"column:excute_time" json:"excute_time"`
	FinishTime   *time.Time `gorm:"column:finish_time" json:"finish_time"`
}

CollectEvent mapped from table <collect_event>

func (*CollectEvent) PrimaryKey

func (*CollectEvent) PrimaryKey() []string

func (*CollectEvent) TableName

func (*CollectEvent) TableName() string

TableName CollectEvent's table name

type ConfigDetail

type ConfigDetail struct {
	ConfigDetailID string  `gorm:"column:config_detail_id;primaryKey" json:"config_detail_id"`
	GroupID        *string `gorm:"column:group_id" json:"group_id"`
	Name           *string `gorm:"column:name" json:"name"`
	Value          *string `gorm:"column:value" json:"value"`
}

ConfigDetail mapped from table <config_detail>

func (*ConfigDetail) PrimaryKey

func (*ConfigDetail) PrimaryKey() []string

func (*ConfigDetail) TableName

func (*ConfigDetail) TableName() string

TableName ConfigDetail's table name

type ConfigDetailChangeHistory

type ConfigDetailChangeHistory struct {
	ChangeID       string  `gorm:"column:change_id;primaryKey" json:"change_id"`
	Before         *string `gorm:"column:before" json:"before"`
	After          *string `gorm:"column:after" json:"after"`
	Field          *string `gorm:"column:field" json:"field"`
	Value          *string `gorm:"column:value" json:"value"`
	Name           *string `gorm:"column:name" json:"name"`
	NameCopy       *string `gorm:"column:name_copy" json:"name_copy"`
	ConfigDetailID *string `gorm:"column:config_detail_id" json:"config_detail_id"`
	CreateUser     *string `gorm:"column:create_user" json:"create_user"`
	CreateTime     *string `gorm:"column:create_time" json:"create_time"`
	Operation      *string `gorm:"column:operation" json:"operation"`
	GroupID        *string `gorm:"column:group_id" json:"group_id"`
}

ConfigDetailChangeHistory mapped from table <config_detail_change_history>

func (*ConfigDetailChangeHistory) PrimaryKey

func (*ConfigDetailChangeHistory) PrimaryKey() []string

func (*ConfigDetailChangeHistory) TableName

func (*ConfigDetailChangeHistory) TableName() string

TableName ConfigDetailChangeHistory's table name

type ConfigGroup

type ConfigGroup struct {
	GroupID     string  `gorm:"column:group_id;primaryKey" json:"group_id"`
	Name        *string `gorm:"column:name" json:"name"`
	Description *string `gorm:"column:description" json:"description"`
	CreateUser  *string `gorm:"column:create_user" json:"create_user"`
	CreateTime  *string `gorm:"column:create_time" json:"create_time"`
}

ConfigGroup mapped from table <config_group>

func (*ConfigGroup) PrimaryKey

func (*ConfigGroup) PrimaryKey() []string

func (*ConfigGroup) TableName

func (*ConfigGroup) TableName() string

TableName ConfigGroup's table name

type DjangoAdminLog

type DjangoAdminLog struct {
	ID            int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ActionTime    time.Time `gorm:"column:action_time;not null" json:"action_time"`
	ObjectID      *string   `gorm:"column:object_id" json:"object_id"`
	ObjectRepr    string    `gorm:"column:object_repr;not null" json:"object_repr"`
	ActionFlag    int32     `gorm:"column:action_flag;not null" json:"action_flag"`
	ChangeMessage string    `gorm:"column:change_message;not null" json:"change_message"`
	ContentTypeID *int32    `gorm:"column:content_type_id" json:"content_type_id"`
	UserID        int32     `gorm:"column:user_id;not null" json:"user_id"`
}

DjangoAdminLog mapped from table <django_admin_log>

func (*DjangoAdminLog) PrimaryKey

func (*DjangoAdminLog) PrimaryKey() []string

func (*DjangoAdminLog) TableName

func (*DjangoAdminLog) TableName() string

TableName DjangoAdminLog's table name

type DjangoContentType

type DjangoContentType struct {
	ID       int32  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	AppLabel string `gorm:"column:app_label;not null" json:"app_label"`
	Model    string `gorm:"column:model;not null" json:"model"`
}

DjangoContentType mapped from table <django_content_type>

func (*DjangoContentType) PrimaryKey

func (*DjangoContentType) PrimaryKey() []string

func (*DjangoContentType) TableName

func (*DjangoContentType) TableName() string

TableName DjangoContentType's table name

type DjangoMigrations

type DjangoMigrations struct {
	ID      int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	App     string    `gorm:"column:app;not null" json:"app"`
	Name    string    `gorm:"column:name;not null" json:"name"`
	Applied time.Time `gorm:"column:applied;not null" json:"applied"`
}

DjangoMigrations mapped from table <django_migrations>

func (*DjangoMigrations) PrimaryKey

func (*DjangoMigrations) PrimaryKey() []string

func (*DjangoMigrations) TableName

func (*DjangoMigrations) TableName() string

TableName DjangoMigrations's table name

type DjangoSession

type DjangoSession struct {
	SessionKey  string    `gorm:"column:session_key;primaryKey" json:"session_key"`
	SessionData string    `gorm:"column:session_data;not null" json:"session_data"`
	ExpireDate  time.Time `gorm:"column:expire_date;not null" json:"expire_date"`
}

DjangoSession mapped from table <django_session>

func (*DjangoSession) PrimaryKey

func (*DjangoSession) PrimaryKey() []string

func (*DjangoSession) TableName

func (*DjangoSession) TableName() string

TableName DjangoSession's table name

type DocGroup

type DocGroup struct {
	DocGroupID string  `gorm:"column:doc_group_id;primaryKey" json:"doc_group_id"`
	Name       *string `gorm:"column:name" json:"name"`
	Type       *string `gorm:"column:type" json:"type"`
	Desc       *string `gorm:"column:desc" json:"desc"`
	OrderIndex *int32  `gorm:"column:order_index" json:"order_index"`
	CreateTime *string `gorm:"column:create_time" json:"create_time"`
	CreateUser *string `gorm:"column:create_user" json:"create_user"`
	IsDelete   *string `gorm:"column:is_delete" json:"is_delete"`
}

DocGroup mapped from table <doc_group>

func (*DocGroup) PrimaryKey

func (*DocGroup) PrimaryKey() []string

func (*DocGroup) TableName

func (*DocGroup) TableName() string

TableName DocGroup's table name

type LdapGroup

type LdapGroup struct {
	LdapGroupID  string  `gorm:"column:ldap_group_id;primaryKey" json:"ldap_group_id"`
	Name         *string `gorm:"column:name" json:"name"`
	OrderIndex   *int32  `gorm:"column:order_index" json:"order_index"`
	HasGroup     *string `gorm:"column:has_group" json:"has_group"`
	LastSyncTime *string `gorm:"column:last_sync_time" json:"last_sync_time"`
}

LdapGroup mapped from table <ldap_group>

func (*LdapGroup) PrimaryKey

func (*LdapGroup) PrimaryKey() []string

func (*LdapGroup) TableName

func (*LdapGroup) TableName() string

TableName LdapGroup's table name

type Project

type Project struct {
	ProjectID  string  `gorm:"column:project_id;primaryKey" json:"project_id"`
	Code       *string `gorm:"column:code" json:"code"`
	Name       *string `gorm:"column:name" json:"name"`
	CreateTime *string `gorm:"column:create_time" json:"create_time"`
	CreateUser *string `gorm:"column:create_user" json:"create_user"`
	IsDelete   *string `gorm:"column:is_delete" json:"is_delete"`
}

Project mapped from table <project>

func (*Project) PrimaryKey

func (*Project) PrimaryKey() []string

func (*Project) TableName

func (*Project) TableName() string

TableName Project's table name

type ReportGitcommitinfo

type ReportGitcommitinfo struct {
	PID               string     `gorm:"column:p_id;primaryKey" json:"p_id"` // ID
	Ref               *string    `gorm:"column:ref" json:"ref"`
	ProjectID         *string    `gorm:"column:project_id" json:"project_id"` // 项目编码
	ProjectName       *string    `gorm:"column:project_name" json:"project_name"`
	CommitID          *string    `gorm:"column:commit_id" json:"commit_id"`
	CommitMessage     *string    `gorm:"column:commit_message" json:"commit_message"`
	CommitTime        *time.Time `gorm:"column:commit_time" json:"commit_time"`
	CommitAdditions   *int32     `gorm:"column:commit_additions" json:"commit_additions"`
	CommitDeletions   *int32     `gorm:"column:commit_deletions" json:"commit_deletions"`
	CommitTotal       *int32     `gorm:"column:commit_total" json:"commit_total"`
	CommitAuthorName  *string    `gorm:"column:commit_author_name" json:"commit_author_name"`
	CommitAuthorEmail *string    `gorm:"column:commit_author_email" json:"commit_author_email"`
	BatchID           *string    `gorm:"column:batch_id" json:"batch_id"`
	PathWithNamespace *string    `gorm:"column:path_with_namespace" json:"path_with_namespace"`
	CommitName        *string    `gorm:"column:commit_name" json:"commit_name"`
	CmsUserID         *string    `gorm:"column:cms_user_id" json:"cms_user_id"`
	CmsUserName       *string    `gorm:"column:cms_user_name" json:"cms_user_name"`
	CmsUserNick       *string    `gorm:"column:cms_user_nick" json:"cms_user_nick"`
	IssueKey          *string    `gorm:"column:issue_key" json:"issue_key"`
	GroupID           *string    `gorm:"column:group_id" json:"group_id"`
	ArtifactID        *string    `gorm:"column:artifact_id" json:"artifact_id"`
}

ReportGitcommitinfo mapped from table <report_gitcommitinfo>

func (*ReportGitcommitinfo) PrimaryKey

func (*ReportGitcommitinfo) PrimaryKey() []string

func (*ReportGitcommitinfo) TableName

func (*ReportGitcommitinfo) TableName() string

TableName ReportGitcommitinfo's table name

type ReportGituserFix

type ReportGituserFix struct {
	PID         string  `gorm:"column:p_id;primaryKey" json:"p_id"` // ID
	CmsUserName *string `gorm:"column:cms_user_name" json:"cms_user_name"`
	GitUserName *string `gorm:"column:git_user_name" json:"git_user_name"`
}

ReportGituserFix mapped from table <report_gituser_fix>

func (*ReportGituserFix) PrimaryKey

func (*ReportGituserFix) PrimaryKey() []string

func (*ReportGituserFix) TableName

func (*ReportGituserFix) TableName() string

TableName ReportGituserFix's table name

type Role

type Role struct {
	RoleID     string  `gorm:"column:role_id;primaryKey" json:"role_id"`
	RoleName   *string `gorm:"column:role_name" json:"role_name"`
	OrderIndex *int32  `gorm:"column:order_index" json:"order_index"`
	RoleCode   *string `gorm:"column:role_code" json:"role_code"`
}

Role mapped from table <role>

func (*Role) PrimaryKey

func (*Role) PrimaryKey() []string

func (*Role) TableName

func (*Role) TableName() string

TableName Role's table name

type RoleLdapGroup

type RoleLdapGroup struct {
	RoleLdapGroupID string  `gorm:"column:role_ldap_group_id;primaryKey" json:"role_ldap_group_id"`
	RoleID          *string `gorm:"column:role_id" json:"role_id"`
	LdapGroupID     *string `gorm:"column:ldap_group_id" json:"ldap_group_id"`
}

RoleLdapGroup mapped from table <role_ldap_group>

func (*RoleLdapGroup) PrimaryKey

func (*RoleLdapGroup) PrimaryKey() []string

func (*RoleLdapGroup) TableName

func (*RoleLdapGroup) TableName() string

TableName RoleLdapGroup's table name

type RoleMenu

type RoleMenu struct {
	RoleMenuID string  `gorm:"column:role_menu_id;primaryKey" json:"role_menu_id"`
	RoleID     *string `gorm:"column:role_id" json:"role_id"`
	MenuID     *string `gorm:"column:menu_id" json:"menu_id"`
}

RoleMenu mapped from table <role_menu>

func (*RoleMenu) PrimaryKey

func (*RoleMenu) PrimaryKey() []string

func (*RoleMenu) TableName

func (*RoleMenu) TableName() string

TableName RoleMenu's table name

type SysCode

type SysCode struct {
	SysCodeID       string  `gorm:"column:sys_code_id;primaryKey" json:"sys_code_id"`
	SysCodeType     *string `gorm:"column:sys_code_type" json:"sys_code_type"`
	SysCodeTypeName *string `gorm:"column:sys_code_type_name" json:"sys_code_type_name"`
	SysCode         *string `gorm:"column:sys_code" json:"sys_code"`
	SysCodeText     *string `gorm:"column:sys_code_text" json:"sys_code_text"`
	OrderIndex      *int32  `gorm:"column:order_index" json:"order_index"`
	Icon            *string `gorm:"column:icon" json:"icon"`
}

SysCode mapped from table <sys_code>

func (*SysCode) PrimaryKey

func (*SysCode) PrimaryKey() []string

func (*SysCode) TableName

func (*SysCode) TableName() string

TableName SysCode's table name

type SysMenu

type SysMenu struct {
	MenuID     string  `gorm:"column:menu_id;primaryKey" json:"menu_id"`
	Name       *string `gorm:"column:name" json:"name"`
	MenuType   *string `gorm:"column:menu_type" json:"menu_type"`
	MenuURL    *string `gorm:"column:menu_url" json:"menu_url"`
	ParentID   *string `gorm:"column:parent_id" json:"parent_id"`
	OrderIndex *int32  `gorm:"column:order_index" json:"order_index"`
	Icon       *string `gorm:"column:icon" json:"icon"`
	Icon2      *string `gorm:"column:icon2" json:"icon2"`
}

SysMenu mapped from table <sys_menu>

func (*SysMenu) PrimaryKey

func (*SysMenu) PrimaryKey() []string

func (*SysMenu) TableName

func (*SysMenu) TableName() string

TableName SysMenu's table name

type SysParam

type SysParam struct {
	SysParamID   string     `gorm:"column:sys_param_id;primaryKey" json:"sys_param_id"`                       // 主键ID
	ParamName    *string    `gorm:"column:param_name" json:"param_name"`                                      // 参数名称
	ParamValue   *string    `gorm:"column:param_value" json:"param_value"`                                    // 参数值
	Notes        *string    `gorm:"column:notes" json:"notes"`                                                // 备注
	HospitalCode *string    `gorm:"column:hospital_code" json:"hospital_code"`                                // 院区编码
	SysProjectID *int32     `gorm:"column:sys_project_id;default:-1" json:"sys_project_id"`                   // 合作项目
	CreateTime   *time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP" json:"create_time"` // 记录创建时间(数据库自动写入)
	ModifyTime   *time.Time `gorm:"column:modify_time;not null;default:CURRENT_TIMESTAMP" json:"modify_time"` // 记录修改时间(数据库自动写入)
	Comments     *string    `gorm:"column:comments" json:"comments"`                                          // 备注说明
}

SysParam mapped from table <sys_param>

func (*SysParam) PrimaryKey

func (*SysParam) PrimaryKey() []string

func (*SysParam) TableName

func (*SysParam) TableName() string

TableName SysParam's table name

type TableData

type TableData struct {
	template_service.DatabaseModel
}

func (*TableData) CloneModel

func (*TableData) CloneModel(tableName string) interface{}

func (*TableData) GetModel

func (*TableData) GetModel(tableName string) interface{}

func (*TableData) GetPrimaryKey

func (*TableData) GetPrimaryKey(tableName string) []string

type TemplateEventLog

type TemplateEventLog struct {
	TemplateEventLogID string  `gorm:"column:template_event_log_id;primaryKey" json:"template_event_log_id"`
	UserID             *string `gorm:"column:user_id" json:"user_id"`
	EventID            *string `gorm:"column:event_id" json:"event_id"`
	Msg                *string `gorm:"column:msg" json:"msg"`
	Datetime           *string `gorm:"column:datetime" json:"datetime"`
	FromService        *string `gorm:"column:from_service" json:"from_service"`
}

TemplateEventLog mapped from table <template_event_log>

func (*TemplateEventLog) PrimaryKey

func (*TemplateEventLog) PrimaryKey() []string

func (*TemplateEventLog) TableName

func (*TemplateEventLog) TableName() string

TableName TemplateEventLog's table name

type UserAccount

type UserAccount struct {
	UserID          string  `gorm:"column:user_id;primaryKey" json:"user_id"`
	Nick            *string `gorm:"column:nick" json:"nick"`
	UserName        *string `gorm:"column:user_name" json:"user_name"`
	Password        *string `gorm:"column:password" json:"password"`
	UserStatus      *string `gorm:"column:user_status" json:"user_status"`
	EntryDate       *string `gorm:"column:entry_date" json:"entry_date"`
	Email           *string `gorm:"column:email" json:"email"`
	Phone           *string `gorm:"column:phone" json:"phone"`
	LeaveDate       *string `gorm:"column:leave_date" json:"leave_date"`
	IsDelete        *string `gorm:"column:is_delete" json:"is_delete"`
	CreateTime      *string `gorm:"column:create_time" json:"create_time"`
	CreateUser      *string `gorm:"column:create_user" json:"create_user"`
	ModifyUser      *string `gorm:"column:modify_user" json:"modify_user"`
	ModifyTime      *string `gorm:"column:modify_time" json:"modify_time"`
	WorkCode        *string `gorm:"column:work_code" json:"work_code"`
	CreateLdap      *string `gorm:"column:create_ldap" json:"create_ldap"`
	LadpUserLoginID *string `gorm:"column:ladp_user_login_id" json:"ladp_user_login_id"`
	LeaveReason     *string `gorm:"column:leave_reason" json:"leave_reason"`
	WechatID        *string `gorm:"column:wechat_id" json:"wechat_id"`
	AttendanceID    *string `gorm:"column:attendance_id" json:"attendance_id"`
}

UserAccount mapped from table <user_account>

func (*UserAccount) PrimaryKey

func (*UserAccount) PrimaryKey() []string

func (*UserAccount) TableName

func (*UserAccount) TableName() string

TableName UserAccount's table name

type UserChangeHistory

type UserChangeHistory struct {
	ChangeID   string  `gorm:"column:change_id;primaryKey" json:"change_id"`
	Before     *string `gorm:"column:before" json:"before"`
	After      *string `gorm:"column:after" json:"after"`
	Field      *string `gorm:"column:field" json:"field"`
	Value      *string `gorm:"column:value" json:"value"`
	Name       *string `gorm:"column:name" json:"name"`
	UserID     *string `gorm:"column:user_id" json:"user_id"`
	CreateUser *string `gorm:"column:create_user" json:"create_user"`
	CreateTime *string `gorm:"column:create_time" json:"create_time"`
	Operation  *string `gorm:"column:operation" json:"operation"`
}

UserChangeHistory mapped from table <user_change_history>

func (*UserChangeHistory) PrimaryKey

func (*UserChangeHistory) PrimaryKey() []string

func (*UserChangeHistory) TableName

func (*UserChangeHistory) TableName() string

TableName UserChangeHistory's table name

type UserRole

type UserRole struct {
	UserRoleID string  `gorm:"column:user_role_id;primaryKey" json:"user_role_id"`
	RoleID     *string `gorm:"column:role_id" json:"role_id"`
	UserID     *string `gorm:"column:user_id" json:"user_id"`
}

UserRole mapped from table <user_role>

func (*UserRole) PrimaryKey

func (*UserRole) PrimaryKey() []string

func (*UserRole) TableName

func (*UserRole) TableName() string

TableName UserRole's table name

Jump to

Keyboard shortcuts

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