So far so good
This commit is contained in:
88
examples/bun/sql_core_masterprocess.go
Executable file
88
examples/bun/sql_core_masterprocess.go
Executable file
@@ -0,0 +1,88 @@
|
||||
package models_bun
|
||||
|
||||
import "fmt"
|
||||
import db "github.com/bitechdev/GoCore/pkg/models"
|
||||
import "github.com/bitechdev/GoCore/pkg/types"
|
||||
import "github.com/uptrace/bun"
|
||||
import resolvespec_common "github.com/bitechdev/ResolveSpec/pkg/common"
|
||||
|
||||
//ModelCoreMasterprocess - Generated Table for Schema core
|
||||
type ModelCoreMasterprocess struct {
|
||||
bun.BaseModel `bun:"table:core.masterprocess,alias:masterprocess"`
|
||||
Description resolvespec_common.SqlString `json:"description" bun:"description,type:citext,"`
|
||||
GUID resolvespec_common.SqlUUID `json:"guid" bun:"guid,type:uuid,default:newid(),"`
|
||||
Inactive resolvespec_common.SqlInt16 `json:"inactive" bun:"inactive,type:smallint,"`
|
||||
Jsonvalue resolvespec_common.SqlJSONB `json:"jsonvalue" bun:"jsonvalue,type:jsonb,"`
|
||||
Ridjsonschema resolvespec_common.SqlInt32 `json:"rid_jsonschema" bun:"rid_jsonschema,type:integer,"`
|
||||
Ridmasterprocess resolvespec_common.SqlInt32 `json:"rid_masterprocess" bun:"rid_masterprocess,type:integer,pk,default:nextval('core.identity_masterprocess_rid_masterprocess'::regclass),"`
|
||||
Ridmastertypehubtype resolvespec_common.SqlInt32 `json:"rid_mastertype_hubtype" bun:"rid_mastertype_hubtype,type:integer,"`
|
||||
Ridmastertypeprocesstype resolvespec_common.SqlInt32 `json:"rid_mastertype_processtype" bun:"rid_mastertype_processtype,type:integer,"`
|
||||
Ridprogrammodule resolvespec_common.SqlInt32 `json:"rid_programmodule" bun:"rid_programmodule,type:integer,"`
|
||||
Sequenceno resolvespec_common.SqlInt32 `json:"sequenceno" bun:"sequenceno,type:integer,"`
|
||||
Singleprocess resolvespec_common.SqlInt16 `json:"singleprocess" bun:"singleprocess,type:smallint,"`
|
||||
Updatecnt int64 `json:"updatecnt" bun:"updatecnt,type:integer,default:0,"`
|
||||
JSON *ModelCoreJsonschema `json:"JSON,omitempty" bun:"rel:has-one,join:rid_jsonschema=rid_jsonschema"`
|
||||
MTT_RID_MASTERTYPE_HUBTYPE *ModelCoreMastertype `json:"MTT_RID_MASTERTYPE_HUBTYPE,omitempty" bun:"rel:has-one,join:rid_mastertype_hubtype=rid_mastertype"`
|
||||
MTT_RID_MASTERTYPE_PROCESSTYPE *ModelCoreMastertype `json:"MTT_RID_MASTERTYPE_PROCESSTYPE,omitempty" bun:"rel:has-one,join:rid_mastertype_processtype=rid_mastertype"`
|
||||
PMO *ModelPublicProgrammodule `json:"PMO,omitempty" bun:"rel:has-one,join:rid_programmodule=rid_programmodule"`
|
||||
|
||||
MTL []*ModelCoreMastertask `json:"MTL,omitempty" bun:"rel:has-many,join:rid_masterprocess=rid_masterprocess"`
|
||||
PRO []*ModelCoreProcess `json:"PRO,omitempty" bun:"rel:has-many,join:rid_masterprocess=rid_masterprocess"`
|
||||
db.DBAdhocBuffer `json:",omitempty" bun:",scanonly"`
|
||||
db.DBGetIDInterface `json:",omitempty" bun:"-"`
|
||||
types.SQLTypable `json:",omitempty" bun:"-"`
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreMasterprocess) TableName() string {
|
||||
return "core.masterprocess"
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreMasterprocess) TableNameOnly() string {
|
||||
return "masterprocess"
|
||||
}
|
||||
|
||||
// SchemaName - Returns the schema name for the object.
|
||||
func (m ModelCoreMasterprocess) SchemaName() string {
|
||||
return "core"
|
||||
}
|
||||
|
||||
// GetID - ID interface
|
||||
func (m ModelCoreMasterprocess) GetID() int64 {
|
||||
return m.Ridmasterprocess.Int64()
|
||||
}
|
||||
|
||||
// GetIDStr - ID interface
|
||||
func (m ModelCoreMasterprocess) GetIDStr() string {
|
||||
return fmt.Sprintf("%d", m.Ridmasterprocess)
|
||||
}
|
||||
|
||||
// SetID - ID interface
|
||||
func (m ModelCoreMasterprocess) SetID(newid int64) {
|
||||
m.UpdateID(newid)
|
||||
}
|
||||
|
||||
func (m *ModelCoreMasterprocess) UpdateID(newid int64) {
|
||||
m.Ridmasterprocess.FromString(fmt.Sprintf("%d", newid))
|
||||
}
|
||||
|
||||
// GetIDName - ID interface
|
||||
func (m ModelCoreMasterprocess) GetIDName() string {
|
||||
return "rid_masterprocess"
|
||||
}
|
||||
|
||||
// GetPrefix - Returns a table prefix
|
||||
func (m ModelCoreMasterprocess) GetPrefix() string {
|
||||
return "MPR"
|
||||
}
|
||||
|
||||
// GetRowNumber - Returns the row number of the record
|
||||
func (m ModelCoreMasterprocess) GetRowNumber() int64 {
|
||||
return m.RowNumber
|
||||
}
|
||||
|
||||
// SetRowNumber - Set the row number of a record
|
||||
func (m *ModelCoreMasterprocess) SetRowNumber(num int64) {
|
||||
m.RowNumber = num
|
||||
}
|
||||
96
examples/bun/sql_core_mastertask.go
Executable file
96
examples/bun/sql_core_mastertask.go
Executable file
@@ -0,0 +1,96 @@
|
||||
package models_bun
|
||||
|
||||
import "fmt"
|
||||
import db "github.com/bitechdev/GoCore/pkg/models"
|
||||
import "github.com/bitechdev/GoCore/pkg/types"
|
||||
import "github.com/uptrace/bun"
|
||||
import resolvespec_common "github.com/bitechdev/ResolveSpec/pkg/common"
|
||||
|
||||
//ModelCoreMastertask - Generated Table for Schema core
|
||||
type ModelCoreMastertask struct {
|
||||
bun.BaseModel `bun:"table:core.mastertask,alias:mastertask"`
|
||||
Allactionsmustcomplete resolvespec_common.SqlInt16 `json:"allactionsmustcomplete" bun:"allactionsmustcomplete,type:smallint,"`
|
||||
Condition resolvespec_common.SqlString `json:"condition" bun:"condition,type:citext,"`
|
||||
Description resolvespec_common.SqlString `json:"description" bun:"description,type:citext,"`
|
||||
Dueday resolvespec_common.SqlInt16 `json:"dueday" bun:"dueday,type:smallint,"`
|
||||
Dueoption resolvespec_common.SqlString `json:"dueoption" bun:"dueoption,type:citext,"`
|
||||
Escalation resolvespec_common.SqlInt32 `json:"escalation" bun:"escalation,type:integer,"`
|
||||
Escalationoption resolvespec_common.SqlString `json:"escalationoption" bun:"escalationoption,type:citext,"`
|
||||
GUID resolvespec_common.SqlUUID `json:"guid" bun:"guid,type:uuid,default:newid(),"`
|
||||
Inactive resolvespec_common.SqlInt16 `json:"inactive" bun:"inactive,type:smallint,"`
|
||||
Jsonvalue resolvespec_common.SqlJSONB `json:"jsonvalue" bun:"jsonvalue,type:jsonb,"`
|
||||
Mastertasknote resolvespec_common.SqlString `json:"mastertasknote" bun:"mastertasknote,type:citext,"`
|
||||
Repeatinterval resolvespec_common.SqlInt16 `json:"repeatinterval" bun:"repeatinterval,type:smallint,"`
|
||||
Repeattype resolvespec_common.SqlString `json:"repeattype" bun:"repeattype,type:citext,"`
|
||||
Ridjsonschema resolvespec_common.SqlInt32 `json:"rid_jsonschema" bun:"rid_jsonschema,type:integer,"`
|
||||
Ridmasterprocess resolvespec_common.SqlInt32 `json:"rid_masterprocess" bun:"rid_masterprocess,type:integer,"`
|
||||
Ridmastertask resolvespec_common.SqlInt32 `json:"rid_mastertask" bun:"rid_mastertask,type:integer,pk,default:nextval('core.identity_mastertask_rid_mastertask'::regclass),"`
|
||||
Ridmastertypetasktype resolvespec_common.SqlInt32 `json:"rid_mastertype_tasktype" bun:"rid_mastertype_tasktype,type:integer,"`
|
||||
Sequenceno resolvespec_common.SqlInt32 `json:"sequenceno" bun:"sequenceno,type:integer,"`
|
||||
Singletask resolvespec_common.SqlInt16 `json:"singletask" bun:"singletask,type:smallint,"`
|
||||
Startday resolvespec_common.SqlInt16 `json:"startday" bun:"startday,type:smallint,"`
|
||||
Updatecnt int64 `json:"updatecnt" bun:"updatecnt,type:integer,default:0,"`
|
||||
JSON *ModelCoreJsonschema `json:"JSON,omitempty" bun:"rel:has-one,join:rid_jsonschema=rid_jsonschema"`
|
||||
MPR *ModelCoreMasterprocess `json:"MPR,omitempty" bun:"rel:has-one,join:rid_masterprocess=rid_masterprocess"`
|
||||
MTT *ModelCoreMastertype `json:"MTT,omitempty" bun:"rel:has-one,join:rid_mastertype_tasktype=rid_mastertype"`
|
||||
|
||||
MAL []*ModelCoreMastertaskitem `json:"MAL,omitempty" bun:"rel:has-many,join:rid_mastertask=rid_mastertask"`
|
||||
TAS []*ModelCoreTasklist `json:"TAS,omitempty" bun:"rel:has-many,join:rid_mastertask=rid_mastertask"`
|
||||
db.DBAdhocBuffer `json:",omitempty" bun:",scanonly"`
|
||||
db.DBGetIDInterface `json:",omitempty" bun:"-"`
|
||||
types.SQLTypable `json:",omitempty" bun:"-"`
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreMastertask) TableName() string {
|
||||
return "core.mastertask"
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreMastertask) TableNameOnly() string {
|
||||
return "mastertask"
|
||||
}
|
||||
|
||||
// SchemaName - Returns the schema name for the object.
|
||||
func (m ModelCoreMastertask) SchemaName() string {
|
||||
return "core"
|
||||
}
|
||||
|
||||
// GetID - ID interface
|
||||
func (m ModelCoreMastertask) GetID() int64 {
|
||||
return m.Ridmastertask.Int64()
|
||||
}
|
||||
|
||||
// GetIDStr - ID interface
|
||||
func (m ModelCoreMastertask) GetIDStr() string {
|
||||
return fmt.Sprintf("%d", m.Ridmastertask)
|
||||
}
|
||||
|
||||
// SetID - ID interface
|
||||
func (m ModelCoreMastertask) SetID(newid int64) {
|
||||
m.UpdateID(newid)
|
||||
}
|
||||
|
||||
func (m *ModelCoreMastertask) UpdateID(newid int64) {
|
||||
m.Ridmastertask.FromString(fmt.Sprintf("%d", newid))
|
||||
}
|
||||
|
||||
// GetIDName - ID interface
|
||||
func (m ModelCoreMastertask) GetIDName() string {
|
||||
return "rid_mastertask"
|
||||
}
|
||||
|
||||
// GetPrefix - Returns a table prefix
|
||||
func (m ModelCoreMastertask) GetPrefix() string {
|
||||
return "MTL"
|
||||
}
|
||||
|
||||
// GetRowNumber - Returns the row number of the record
|
||||
func (m ModelCoreMastertask) GetRowNumber() int64 {
|
||||
return m.RowNumber
|
||||
}
|
||||
|
||||
// SetRowNumber - Set the row number of a record
|
||||
func (m *ModelCoreMastertask) SetRowNumber(num int64) {
|
||||
m.RowNumber = num
|
||||
}
|
||||
101
examples/bun/sql_core_mastertype.go
Executable file
101
examples/bun/sql_core_mastertype.go
Executable file
@@ -0,0 +1,101 @@
|
||||
package models_bun
|
||||
|
||||
import "fmt"
|
||||
import db "github.com/bitechdev/GoCore/pkg/models"
|
||||
import "github.com/bitechdev/GoCore/pkg/types"
|
||||
import "github.com/uptrace/bun"
|
||||
import resolvespec_common "github.com/bitechdev/ResolveSpec/pkg/common"
|
||||
|
||||
//ModelCoreMastertype - Generated Table for Schema core
|
||||
type ModelCoreMastertype struct {
|
||||
bun.BaseModel `bun:"table:core.mastertype,alias:mastertype"`
|
||||
Category resolvespec_common.SqlString `json:"category" bun:"category,type:citext,"`
|
||||
Description resolvespec_common.SqlString `json:"description" bun:"description,type:citext,"`
|
||||
Disableedit resolvespec_common.SqlInt16 `json:"disableedit" bun:"disableedit,type:smallint,"`
|
||||
Forprefix resolvespec_common.SqlString `json:"forprefix" bun:"forprefix,type:citext,"`
|
||||
GUID resolvespec_common.SqlUUID `json:"guid" bun:"guid,type:uuid,default:newid(),"`
|
||||
Hidden resolvespec_common.SqlInt16 `json:"hidden" bun:"hidden,type:smallint,"`
|
||||
Inactive resolvespec_common.SqlInt16 `json:"inactive" bun:"inactive,type:smallint,"`
|
||||
Jsonvalue resolvespec_common.SqlJSONB `json:"jsonvalue" bun:"jsonvalue,type:jsonb,"`
|
||||
Mastertype resolvespec_common.SqlString `json:"mastertype" bun:"mastertype,type:citext,"`
|
||||
Note resolvespec_common.SqlString `json:"note" bun:"note,type:citext,"`
|
||||
Ridmastertype resolvespec_common.SqlInt32 `json:"rid_mastertype" bun:"rid_mastertype,type:integer,pk,default:nextval('core.identity_mastertype_rid_mastertype'::regclass),"`
|
||||
Ridparent resolvespec_common.SqlInt32 `json:"rid_parent" bun:"rid_parent,type:integer,"`
|
||||
Updatecnt int64 `json:"updatecnt" bun:"updatecnt,type:integer,default:0,"`
|
||||
MTT *ModelCoreMastertype `json:"MTT,omitempty" bun:"rel:has-one,join:rid_mastertype=rid_parent"`
|
||||
|
||||
CMAT []*ModelCoreCommitem_Attachment `json:"CMAT,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype"`
|
||||
DVT []*ModelCoreDocumentvault `json:"DVT,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype"`
|
||||
EAD []*ModelCoreEmailaddresslist `json:"EAD,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype"`
|
||||
JSON []*ModelCoreJsonschema `json:"JSON,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype"`
|
||||
MAL []*ModelCoreMastertaskitem `json:"MAL,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_hubtype"`
|
||||
MPR_RID_MASTERTYPE_HUBTYPE []*ModelCoreMasterprocess `json:"MPR_RID_MASTERTYPE_HUBTYPE,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_hubtype"`
|
||||
MPR_RID_MASTERTYPE_PROCESSTYPE []*ModelCoreMasterprocess `json:"MPR_RID_MASTERTYPE_PROCESSTYPE,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_processtype"`
|
||||
MSE []*ModelCoreMasterservice `json:"MSE,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_hubtype"`
|
||||
MTL []*ModelCoreMastertask `json:"MTL,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_tasktype"`
|
||||
MTT_RID_PARENT []*ModelCoreMastertype `json:"MTT_RID_PARENT,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_parent"`
|
||||
RUL []*ModelCoreMasterworkflowrule `json:"RUL,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_group"`
|
||||
TAT_RID_MASTERTYPE_DOCGENTYPE []*ModelCoreMasterdoctemplate `json:"TAT_RID_MASTERTYPE_DOCGENTYPE,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_docgentype"`
|
||||
TAT_RID_MASTERTYPE_DOCUMENT []*ModelCoreMasterdoctemplate `json:"TAT_RID_MASTERTYPE_DOCUMENT,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_document"`
|
||||
TAT_RID_MASTERTYPE_GROUP []*ModelCoreMasterdoctemplate `json:"TAT_RID_MASTERTYPE_GROUP,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_group"`
|
||||
TAT_RID_MASTERTYPE_HUBTYPE []*ModelCoreMasterdoctemplate `json:"TAT_RID_MASTERTYPE_HUBTYPE,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_hubtype"`
|
||||
TAT_RID_MASTERTYPE_MERGETYPE []*ModelCoreMasterdoctemplate `json:"TAT_RID_MASTERTYPE_MERGETYPE,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_mergetype"`
|
||||
TAT_RID_MASTERTYPE_TARGETTYPE []*ModelCoreMasterdoctemplate `json:"TAT_RID_MASTERTYPE_TARGETTYPE,omitempty" bun:"rel:has-many,join:rid_mastertype=rid_mastertype_targettype"`
|
||||
db.DBAdhocBuffer `json:",omitempty" bun:",scanonly"`
|
||||
db.DBGetIDInterface `json:",omitempty" bun:"-"`
|
||||
types.SQLTypable `json:",omitempty" bun:"-"`
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreMastertype) TableName() string {
|
||||
return "core.mastertype"
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreMastertype) TableNameOnly() string {
|
||||
return "mastertype"
|
||||
}
|
||||
|
||||
// SchemaName - Returns the schema name for the object.
|
||||
func (m ModelCoreMastertype) SchemaName() string {
|
||||
return "core"
|
||||
}
|
||||
|
||||
// GetID - ID interface
|
||||
func (m ModelCoreMastertype) GetID() int64 {
|
||||
return m.Ridmastertype.Int64()
|
||||
}
|
||||
|
||||
// GetIDStr - ID interface
|
||||
func (m ModelCoreMastertype) GetIDStr() string {
|
||||
return fmt.Sprintf("%d", m.Ridmastertype)
|
||||
}
|
||||
|
||||
// SetID - ID interface
|
||||
func (m ModelCoreMastertype) SetID(newid int64) {
|
||||
m.UpdateID(newid)
|
||||
}
|
||||
|
||||
func (m *ModelCoreMastertype) UpdateID(newid int64) {
|
||||
m.Ridmastertype.FromString(fmt.Sprintf("%d", newid))
|
||||
}
|
||||
|
||||
// GetIDName - ID interface
|
||||
func (m ModelCoreMastertype) GetIDName() string {
|
||||
return "rid_mastertype"
|
||||
}
|
||||
|
||||
// GetPrefix - Returns a table prefix
|
||||
func (m ModelCoreMastertype) GetPrefix() string {
|
||||
return "MTT"
|
||||
}
|
||||
|
||||
// GetRowNumber - Returns the row number of the record
|
||||
func (m ModelCoreMastertype) GetRowNumber() int64 {
|
||||
return m.RowNumber
|
||||
}
|
||||
|
||||
// SetRowNumber - Set the row number of a record
|
||||
func (m *ModelCoreMastertype) SetRowNumber(num int64) {
|
||||
m.RowNumber = num
|
||||
}
|
||||
83
examples/bun/sql_core_process.go
Executable file
83
examples/bun/sql_core_process.go
Executable file
@@ -0,0 +1,83 @@
|
||||
package models_bun
|
||||
|
||||
import "fmt"
|
||||
import db "github.com/bitechdev/GoCore/pkg/models"
|
||||
import "github.com/bitechdev/GoCore/pkg/types"
|
||||
import "github.com/uptrace/bun"
|
||||
import resolvespec_common "github.com/bitechdev/ResolveSpec/pkg/common"
|
||||
|
||||
//ModelCoreProcess - Generated Table for Schema core
|
||||
type ModelCoreProcess struct {
|
||||
bun.BaseModel `bun:"table:core.process,alias:process"`
|
||||
Completedate resolvespec_common.SqlDate `json:"completedate" bun:"completedate,type:date,"`
|
||||
Completetime types.CustomIntTime `json:"completetime" bun:"completetime,type:integer,"`
|
||||
Description resolvespec_common.SqlString `json:"description" bun:"description,type:citext,"`
|
||||
GUID resolvespec_common.SqlUUID `json:"guid" bun:"guid,type:uuid,default:newid(),"`
|
||||
Ridcompleteuser resolvespec_common.SqlInt32 `json:"rid_completeuser" bun:"rid_completeuser,type:integer,"`
|
||||
Ridhub resolvespec_common.SqlInt32 `json:"rid_hub" bun:"rid_hub,type:integer,"`
|
||||
Ridmasterprocess resolvespec_common.SqlInt32 `json:"rid_masterprocess" bun:"rid_masterprocess,type:integer,"`
|
||||
Ridprocess resolvespec_common.SqlInt32 `json:"rid_process" bun:"rid_process,type:integer,pk,default:nextval('core.identity_process_rid_process'::regclass),"`
|
||||
Status resolvespec_common.SqlString `json:"status" bun:"status,type:citext,"`
|
||||
Updatecnt int64 `json:"updatecnt" bun:"updatecnt,type:integer,default:0,"`
|
||||
HUB *ModelCoreHub `json:"HUB,omitempty" bun:"rel:has-one,join:rid_hub=rid_hub"`
|
||||
MPR *ModelCoreMasterprocess `json:"MPR,omitempty" bun:"rel:has-one,join:rid_masterprocess=rid_masterprocess"`
|
||||
|
||||
TAS []*ModelCoreTasklist `json:"TAS,omitempty" bun:"rel:has-many,join:rid_process=rid_process"`
|
||||
db.DBAdhocBuffer `json:",omitempty" bun:",scanonly"`
|
||||
db.DBGetIDInterface `json:",omitempty" bun:"-"`
|
||||
types.SQLTypable `json:",omitempty" bun:"-"`
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreProcess) TableName() string {
|
||||
return "core.process"
|
||||
}
|
||||
|
||||
// TableName - Returns the table name for the object.
|
||||
func (m ModelCoreProcess) TableNameOnly() string {
|
||||
return "process"
|
||||
}
|
||||
|
||||
// SchemaName - Returns the schema name for the object.
|
||||
func (m ModelCoreProcess) SchemaName() string {
|
||||
return "core"
|
||||
}
|
||||
|
||||
// GetID - ID interface
|
||||
func (m ModelCoreProcess) GetID() int64 {
|
||||
return m.Ridprocess.Int64()
|
||||
}
|
||||
|
||||
// GetIDStr - ID interface
|
||||
func (m ModelCoreProcess) GetIDStr() string {
|
||||
return fmt.Sprintf("%d", m.Ridprocess)
|
||||
}
|
||||
|
||||
// SetID - ID interface
|
||||
func (m ModelCoreProcess) SetID(newid int64) {
|
||||
m.UpdateID(newid)
|
||||
}
|
||||
|
||||
func (m *ModelCoreProcess) UpdateID(newid int64) {
|
||||
m.Ridprocess.FromString(fmt.Sprintf("%d", newid))
|
||||
}
|
||||
|
||||
// GetIDName - ID interface
|
||||
func (m ModelCoreProcess) GetIDName() string {
|
||||
return "rid_process"
|
||||
}
|
||||
|
||||
// GetPrefix - Returns a table prefix
|
||||
func (m ModelCoreProcess) GetPrefix() string {
|
||||
return "PRO"
|
||||
}
|
||||
|
||||
// GetRowNumber - Returns the row number of the record
|
||||
func (m ModelCoreProcess) GetRowNumber() int64 {
|
||||
return m.RowNumber
|
||||
}
|
||||
|
||||
// SetRowNumber - Set the row number of a record
|
||||
func (m *ModelCoreProcess) SetRowNumber(num int64) {
|
||||
m.RowNumber = num
|
||||
}
|
||||
Reference in New Issue
Block a user