Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppStatusProjectChief = user.RoleProjectChief AppStatusApprover = user.RoleApprover AppStatusApprover2 = user.RoleApprover2 AppStatusController = user.RoleController AppStatusArchived = user.RoleSystemArchiver AppStatusALL = -1 )
View Source
const ( AppTypeNew = 1 << iota AppTypeChange AppTypeReturnCompute AppTypeReturnStorage AppTypeBrowseMetering AppTypeALL = -1 )
View Source
const ( AppActionSubmit = 1 AppActionPass = 1 AppActionReject = -1 )
Variables ¶
View Source
var TableApp = "application"
View Source
var TableAppOps = "app_ops_record"
View Source
var TableHistoryApp = "history_application"
View Source
var TableHistoryAppOps = "history_app_ops_record"
Functions ¶
func GetSchemaApp ¶
func GetSchemaApp() string
func GetSchemaAppOps ¶
func GetSchemaAppOps() string
func GetSchemaHistoryApp ¶
func GetSchemaHistoryApp() string
func GetSchemaHistoryAppOps ¶
func GetSchemaHistoryAppOps() string
Types ¶
type AppOpsRecord ¶
type AppOpsRecord struct { RecordID int `db:"record_id" json:"record_id"` ProjectID int `db:"project_id" json:"project_id"` ApplicationID int `db:"application_id" json:"application_id"` OpsUserID int `db:"ops_user_id" json:"ops_user_id"` OpsUserChineseName string `db:"ops_user_cn_name" json:"ops_user_cn_name"` Action int `db:"action" json:"action"` ActionStr string `db:"action_str" json:"action_str"` BasicInfo string `db:"basic_info" json:"basic_info"` ExtraInfo string `db:"extra_info" json:"extra_info"` CreatedAt time.Time `db:"created_at" json:"-"` CreatedAtStr string `db:"-" json:"created_at"` }
type Application ¶
type Application struct { ApplicationID int `db:"application_id" json:"application_id"` ProjectID int `db:"project_id" json:"project_id"` Type int `db:"application_type" json:"application_type"` Status int `db:"status" json:"status"` ApplicantUserID int `db:"app_user_id" json:"app_user_id"` ApplicantUserChineseName string `db:"app_user_cn_name" json:"app_user_cn_name"` DepartmentCode string `db:"department_code" json:"department_code"` BasicContent string `db:"basic_content" json:"basic_content"` ExtraContent string `db:"extra_content" json:"extra_content"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
Set up a JSON-based Application struct in a unified format to facilitate the generation of historical record arrays
Click to show internal directories.
Click to hide internal directories.