models

package
v0.0.0-...-095fe54 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2015 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCRMContact

func AddCRMContact(m *CRMContact) (id int64, err error)

AddCRMContact insert a new CRMContact into database and returns last inserted Id on success.

func AddCRMContract

func AddCRMContract(m *CRMContract) (id int64, err error)

AddCRMContract insert a new CRMContract into database and returns last inserted Id on success.

func AddCRMCustomer

func AddCRMCustomer(m *CRMCustomer) (id int64, err error)

AddCRMCustomer insert a new CRMCustomer into database and returns last inserted Id on success.

func AddCRMFollow

func AddCRMFollow(m *CRMFollow) (id int64, err error)

AddCRMFollow insert a new CRMFollow into database and returns last inserted Id on success.

func AddCRMInvoice

func AddCRMInvoice(m *CRMInvoice) (id int64, err error)

AddCRMInvoice insert a new CRMInvoice into database and returns last inserted Id on success.

func AddCRMOrder

func AddCRMOrder(m *CRMOrder) (id int64, err error)

AddCRMOrder insert a new CRMOrder into database and returns last inserted Id on success.

func AddCRMProduct

func AddCRMProduct(m *CRMProduct) (id int64, err error)

AddCRMProduct insert a new CRMProduct into database and returns last inserted Id on success.

func AddCRMProductCategory

func AddCRMProductCategory(m *CRMProductCategory) (id int64, err error)

AddCRMProductCategory insert a new CRMProductCategory into database and returns last inserted Id on success.

func AddCRMReceive

func AddCRMReceive(m *CRMReceive) (id int64, err error)

AddCRMReceive insert a new CRMReceive into database and returns last inserted Id on success.

func AddHrDepartment

func AddHrDepartment(m *HrDepartment) (id int64, err error)

AddHrDepartment insert a new HrDepartment into database and returns last inserted Id on success.

func AddHrEmployee

func AddHrEmployee(m *HrEmployee) (id int64, err error)

AddHrEmployee insert a new HrEmployee into database and returns last inserted Id on success.

func AddHrPosition

func AddHrPosition(m *HrPosition) (id int64, err error)

AddHrPosition insert a new HrPosition into database and returns last inserted Id on success.

func AddHrPost

func AddHrPost(m *HrPost) (id int64, err error)

AddHrPost insert a new HrPost into database and returns last inserted Id on success.

func AddParamSysParam

func AddParamSysParam(m *ParamSysParam) (id int64, err error)

AddParamSysParam insert a new ParamSysParam into database and returns last inserted Id on success.

func AddPersonalCalendar

func AddPersonalCalendar(m *PersonalCalendar) (id int64, err error)

AddPersonalCalendar insert a new PersonalCalendar into database and returns last inserted Id on success.

func AddPersonalNotes

func AddPersonalNotes(m *PersonalNotes) (id int64, err error)

AddPersonalNotes insert a new PersonalNotes into database and returns last inserted Id on success.

func AddPublicNews

func AddPublicNews(m *PublicNews) (id int64, err error)

AddPublicNews insert a new PublicNews into database and returns last inserted Id on success.

func AddPublicNotice

func AddPublicNotice(m *PublicNotice) (id int64, err error)

AddPublicNotice insert a new PublicNotice into database and returns last inserted Id on success.

func AddSysApp

func AddSysApp(m *SysApp) (id int64, err error)

AddSysApp insert a new SysApp into database and returns last inserted Id on success.

func AddSysButton

func AddSysButton(m *SysButton) (id int64, err error)

AddSysButton insert a new SysButton into database and returns last inserted Id on success.

func AddSysInfo

func AddSysInfo(m *SysInfo) (id int64, err error)

AddSysInfo insert a new SysInfo into database and returns last inserted Id on success.

func AddSysLog

func AddSysLog(m *SysLog) (id int64, err error)

AddSysLog insert a new SysLog into database and returns last inserted Id on success.

func AddSysLogErr

func AddSysLogErr(m *SysLogErr) (id int64, err error)

AddSysLogErr insert a new SysLogErr into database and returns last inserted Id on success.

func AddSysMenu

func AddSysMenu(m *SysMenu) (id int64, err error)

AddSysMenu insert a new SysMenu into database and returns last inserted Id on success.

func AddSysRole

func AddSysRole(m *SysRole) (id int64, err error)

AddSysRole insert a new SysRole into database and returns last inserted Id on success.

func AddToolBatch

func AddToolBatch(m *ToolBatch) (id int64, err error)

AddToolBatch insert a new ToolBatch into database and returns last inserted Id on success.

func DeleteCRMContact

func DeleteCRMContact(id int) (err error)

DeleteCRMContact deletes CRMContact by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMContract

func DeleteCRMContract(id int) (err error)

DeleteCRMContract deletes CRMContract by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMCustomer

func DeleteCRMCustomer(id int) (err error)

DeleteCRMCustomer deletes CRMCustomer by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMFollow

func DeleteCRMFollow(id int) (err error)

DeleteCRMFollow deletes CRMFollow by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMInvoice

func DeleteCRMInvoice(id int) (err error)

DeleteCRMInvoice deletes CRMInvoice by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMOrder

func DeleteCRMOrder(id int) (err error)

DeleteCRMOrder deletes CRMOrder by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMProduct

func DeleteCRMProduct(id int) (err error)

DeleteCRMProduct deletes CRMProduct by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMProductCategory

func DeleteCRMProductCategory(id int) (err error)

DeleteCRMProductCategory deletes CRMProductCategory by Id and returns error if the record to be deleted doesn't exist

func DeleteCRMReceive

func DeleteCRMReceive(id int) (err error)

DeleteCRMReceive deletes CRMReceive by Id and returns error if the record to be deleted doesn't exist

func DeleteHrDepartment

func DeleteHrDepartment(id int) (err error)

DeleteHrDepartment deletes HrDepartment by Id and returns error if the record to be deleted doesn't exist

func DeleteHrEmployee

func DeleteHrEmployee(id int) (err error)

DeleteHrEmployee deletes HrEmployee by Id and returns error if the record to be deleted doesn't exist

func DeleteHrPosition

func DeleteHrPosition(id int) (err error)

DeleteHrPosition deletes HrPosition by Id and returns error if the record to be deleted doesn't exist

func DeleteHrPost

func DeleteHrPost(id int) (err error)

DeleteHrPost deletes HrPost by Id and returns error if the record to be deleted doesn't exist

func DeleteParamSysParam

func DeleteParamSysParam(id int) (err error)

DeleteParamSysParam deletes ParamSysParam by Id and returns error if the record to be deleted doesn't exist

func DeletePersonalCalendar

func DeletePersonalCalendar(id int) (err error)

DeletePersonalCalendar deletes PersonalCalendar by Id and returns error if the record to be deleted doesn't exist

func DeletePersonalNotes

func DeletePersonalNotes(id int) (err error)

DeletePersonalNotes deletes PersonalNotes by Id and returns error if the record to be deleted doesn't exist

func DeletePublicNews

func DeletePublicNews(id int) (err error)

DeletePublicNews deletes PublicNews by Id and returns error if the record to be deleted doesn't exist

func DeletePublicNotice

func DeletePublicNotice(id int) (err error)

DeletePublicNotice deletes PublicNotice by Id and returns error if the record to be deleted doesn't exist

func DeleteSysApp

func DeleteSysApp(id int) (err error)

DeleteSysApp deletes SysApp by Id and returns error if the record to be deleted doesn't exist

func DeleteSysButton

func DeleteSysButton(id int) (err error)

DeleteSysButton deletes SysButton by Id and returns error if the record to be deleted doesn't exist

func DeleteSysInfo

func DeleteSysInfo(id int) (err error)

DeleteSysInfo deletes SysInfo by Id and returns error if the record to be deleted doesn't exist

func DeleteSysLog

func DeleteSysLog(id int) (err error)

DeleteSysLog deletes SysLog by Id and returns error if the record to be deleted doesn't exist

func DeleteSysLogErr

func DeleteSysLogErr(id int) (err error)

DeleteSysLogErr deletes SysLogErr by Id and returns error if the record to be deleted doesn't exist

func DeleteSysMenu

func DeleteSysMenu(id int) (err error)

DeleteSysMenu deletes SysMenu by Id and returns error if the record to be deleted doesn't exist

func DeleteSysRole

func DeleteSysRole(id int) (err error)

DeleteSysRole deletes SysRole by Id and returns error if the record to be deleted doesn't exist

func DeleteToolBatch

func DeleteToolBatch(id int) (err error)

DeleteToolBatch deletes ToolBatch by Id and returns error if the record to be deleted doesn't exist

func GetAllCRMContact

func GetAllCRMContact(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMContact retrieves all CRMContact matches certain condition. Returns empty list if no records exist

func GetAllCRMContract

func GetAllCRMContract(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMContract retrieves all CRMContract matches certain condition. Returns empty list if no records exist

func GetAllCRMCustomer

func GetAllCRMCustomer(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMCustomer retrieves all CRMCustomer matches certain condition. Returns empty list if no records exist

func GetAllCRMFollow

func GetAllCRMFollow(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMFollow retrieves all CRMFollow matches certain condition. Returns empty list if no records exist

func GetAllCRMInvoice

func GetAllCRMInvoice(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMInvoice retrieves all CRMInvoice matches certain condition. Returns empty list if no records exist

func GetAllCRMOrder

func GetAllCRMOrder(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMOrder retrieves all CRMOrder matches certain condition. Returns empty list if no records exist

func GetAllCRMProduct

func GetAllCRMProduct(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMProduct retrieves all CRMProduct matches certain condition. Returns empty list if no records exist

func GetAllCRMProductCategory

func GetAllCRMProductCategory(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMProductCategory retrieves all CRMProductCategory matches certain condition. Returns empty list if no records exist

func GetAllCRMReceive

func GetAllCRMReceive(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCRMReceive retrieves all CRMReceive matches certain condition. Returns empty list if no records exist

func GetAllHrDepartment

func GetAllHrDepartment(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllHrDepartment retrieves all HrDepartment matches certain condition. Returns empty list if no records exist

func GetAllHrEmployee

func GetAllHrEmployee(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllHrEmployee retrieves all HrEmployee matches certain condition. Returns empty list if no records exist

func GetAllHrPosition

func GetAllHrPosition(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllHrPosition retrieves all HrPosition matches certain condition. Returns empty list if no records exist

func GetAllHrPost

func GetAllHrPost(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllHrPost retrieves all HrPost matches certain condition. Returns empty list if no records exist

func GetAllParamSysParam

func GetAllParamSysParam(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllParamSysParam retrieves all ParamSysParam matches certain condition. Returns empty list if no records exist

func GetAllPersonalCalendar

func GetAllPersonalCalendar(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllPersonalCalendar retrieves all PersonalCalendar matches certain condition. Returns empty list if no records exist

func GetAllPersonalNotes

func GetAllPersonalNotes(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllPersonalNotes retrieves all PersonalNotes matches certain condition. Returns empty list if no records exist

func GetAllPublicNews

func GetAllPublicNews(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllPublicNews retrieves all PublicNews matches certain condition. Returns empty list if no records exist

func GetAllPublicNotice

func GetAllPublicNotice(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllPublicNotice retrieves all PublicNotice matches certain condition. Returns empty list if no records exist

func GetAllSysApp

func GetAllSysApp(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllSysApp retrieves all SysApp matches certain condition. Returns empty list if no records exist

func GetAllSysButton

func GetAllSysButton(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllSysButton retrieves all SysButton matches certain condition. Returns empty list if no records exist

func GetAllSysInfo

func GetAllSysInfo(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllSysInfo retrieves all SysInfo matches certain condition. Returns empty list if no records exist

func GetAllSysLog

func GetAllSysLog(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllSysLog retrieves all SysLog matches certain condition. Returns empty list if no records exist

func GetAllSysLogErr

func GetAllSysLogErr(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllSysLogErr retrieves all SysLogErr matches certain condition. Returns empty list if no records exist

func GetAllSysMenu

func GetAllSysMenu(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllSysMenu retrieves all SysMenu matches certain condition. Returns empty list if no records exist

func GetAllSysRole

func GetAllSysRole(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllSysRole retrieves all SysRole matches certain condition. Returns empty list if no records exist

func GetAllToolBatch

func GetAllToolBatch(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllToolBatch retrieves all ToolBatch matches certain condition. Returns empty list if no records exist

func UpdateCRMContactById

func UpdateCRMContactById(m *CRMContact) (err error)

UpdateCRMContact updates CRMContact by Id and returns error if the record to be updated doesn't exist

func UpdateCRMContractById

func UpdateCRMContractById(m *CRMContract) (err error)

UpdateCRMContract updates CRMContract by Id and returns error if the record to be updated doesn't exist

func UpdateCRMCustomerById

func UpdateCRMCustomerById(m *CRMCustomer) (err error)

UpdateCRMCustomer updates CRMCustomer by Id and returns error if the record to be updated doesn't exist

func UpdateCRMFollowById

func UpdateCRMFollowById(m *CRMFollow) (err error)

UpdateCRMFollow updates CRMFollow by Id and returns error if the record to be updated doesn't exist

func UpdateCRMInvoiceById

func UpdateCRMInvoiceById(m *CRMInvoice) (err error)

UpdateCRMInvoice updates CRMInvoice by Id and returns error if the record to be updated doesn't exist

func UpdateCRMOrderById

func UpdateCRMOrderById(m *CRMOrder) (err error)

UpdateCRMOrder updates CRMOrder by Id and returns error if the record to be updated doesn't exist

func UpdateCRMProductById

func UpdateCRMProductById(m *CRMProduct) (err error)

UpdateCRMProduct updates CRMProduct by Id and returns error if the record to be updated doesn't exist

func UpdateCRMProductCategoryById

func UpdateCRMProductCategoryById(m *CRMProductCategory) (err error)

UpdateCRMProductCategory updates CRMProductCategory by Id and returns error if the record to be updated doesn't exist

func UpdateCRMReceiveById

func UpdateCRMReceiveById(m *CRMReceive) (err error)

UpdateCRMReceive updates CRMReceive by Id and returns error if the record to be updated doesn't exist

func UpdateHrDepartmentById

func UpdateHrDepartmentById(m *HrDepartment) (err error)

UpdateHrDepartment updates HrDepartment by Id and returns error if the record to be updated doesn't exist

func UpdateHrEmployeeById

func UpdateHrEmployeeById(m *HrEmployee) (err error)

UpdateHrEmployee updates HrEmployee by Id and returns error if the record to be updated doesn't exist

func UpdateHrPositionById

func UpdateHrPositionById(m *HrPosition) (err error)

UpdateHrPosition updates HrPosition by Id and returns error if the record to be updated doesn't exist

func UpdateHrPostById

func UpdateHrPostById(m *HrPost) (err error)

UpdateHrPost updates HrPost by Id and returns error if the record to be updated doesn't exist

func UpdateParamSysParamById

func UpdateParamSysParamById(m *ParamSysParam) (err error)

UpdateParamSysParam updates ParamSysParam by Id and returns error if the record to be updated doesn't exist

func UpdatePersonalCalendarById

func UpdatePersonalCalendarById(m *PersonalCalendar) (err error)

UpdatePersonalCalendar updates PersonalCalendar by Id and returns error if the record to be updated doesn't exist

func UpdatePersonalNotesById

func UpdatePersonalNotesById(m *PersonalNotes) (err error)

UpdatePersonalNotes updates PersonalNotes by Id and returns error if the record to be updated doesn't exist

func UpdatePublicNewsById

func UpdatePublicNewsById(m *PublicNews) (err error)

UpdatePublicNews updates PublicNews by Id and returns error if the record to be updated doesn't exist

func UpdatePublicNoticeById

func UpdatePublicNoticeById(m *PublicNotice) (err error)

UpdatePublicNotice updates PublicNotice by Id and returns error if the record to be updated doesn't exist

func UpdateSysAppById

func UpdateSysAppById(m *SysApp) (err error)

UpdateSysApp updates SysApp by Id and returns error if the record to be updated doesn't exist

func UpdateSysButtonById

func UpdateSysButtonById(m *SysButton) (err error)

UpdateSysButton updates SysButton by Id and returns error if the record to be updated doesn't exist

func UpdateSysInfoById

func UpdateSysInfoById(m *SysInfo) (err error)

UpdateSysInfo updates SysInfo by Id and returns error if the record to be updated doesn't exist

func UpdateSysLogById

func UpdateSysLogById(m *SysLog) (err error)

UpdateSysLog updates SysLog by Id and returns error if the record to be updated doesn't exist

func UpdateSysLogErrById

func UpdateSysLogErrById(m *SysLogErr) (err error)

UpdateSysLogErr updates SysLogErr by Id and returns error if the record to be updated doesn't exist

func UpdateSysMenuById

func UpdateSysMenuById(m *SysMenu) (err error)

UpdateSysMenu updates SysMenu by Id and returns error if the record to be updated doesn't exist

func UpdateSysRoleById

func UpdateSysRoleById(m *SysRole) (err error)

UpdateSysRole updates SysRole by Id and returns error if the record to be updated doesn't exist

func UpdateToolBatchById

func UpdateToolBatchById(m *ToolBatch) (err error)

UpdateToolBatch updates ToolBatch by Id and returns error if the record to be updated doesn't exist

Types

type CRMContact

type CRMContact struct {
	Id            int       `orm:"column(id);auto"`
	CName         string    `orm:"column(C_name);size(250);null"`
	CSex          string    `orm:"column(C_sex);size(10);null"`
	CDepartment   string    `orm:"column(C_department);size(250);null"`
	CPosition     string    `orm:"column(C_position);size(250);null"`
	CBirthday     string    `orm:"column(C_birthday);size(250);null"`
	CTel          string    `orm:"column(C_tel);size(250);null"`
	CFax          string    `orm:"column(C_fax);size(250);null"`
	CEmail        string    `orm:"column(C_email);size(250);null"`
	CMob          string    `orm:"column(C_mob);size(250);null"`
	CQQ           string    `orm:"column(C_QQ);size(250);null"`
	CAdd          string    `orm:"column(C_add);size(250);null"`
	CHobby        string    `orm:"column(C_hobby);size(250);null"`
	CRemarks      string    `orm:"column(C_remarks);size(250);null"`
	CCustomerid   int       `orm:"column(C_customerid);null"`
	CCustomername string    `orm:"column(C_customername);size(250);null"`
	CCreateId     int       `orm:"column(C_createId);null"`
	CCreateDate   time.Time `orm:"column(C_createDate);type(datetime);null"`
	IsDelete      int       `orm:"column(isDelete);null"`
	DeleteTime    time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMContactById

func GetCRMContactById(id int) (v *CRMContact, err error)

GetCRMContactById retrieves CRMContact by Id. Returns error if Id doesn't exist

func (*CRMContact) TableName

func (t *CRMContact) TableName() string

type CRMContract

type CRMContract struct {
	Id                   int       `orm:"column(id);auto"`
	ContractName         string    `orm:"column(Contract_name);size(250);null"`
	Serialnumber         string    `orm:"column(Serialnumber);size(250);null"`
	CustomerId           int       `orm:"column(Customer_id);null"`
	CustomerName         string    `orm:"column(Customer_name);size(250);null"`
	CDepid               int       `orm:"column(C_depid);null"`
	CDepname             string    `orm:"column(C_depname);size(250);null"`
	CEmpid               int       `orm:"column(C_empid);null"`
	CEmpname             string    `orm:"column(C_empname);size(250);null"`
	ContractAmount       float32   `orm:"column(Contract_amount);null"`
	PayCycle             int       `orm:"column(Pay_cycle);null"`
	StartDate            string    `orm:"column(Start_date);size(250);null"`
	EndDate              string    `orm:"column(End_date);size(250);null"`
	SignDate             string    `orm:"column(Sign_date);size(250);null"`
	CustomerContractor   string    `orm:"column(Customer_Contractor);size(250);null"`
	OurContractorDepid   int       `orm:"column(Our_Contractor_depid);null"`
	OurContractorDepname string    `orm:"column(Our_Contractor_depname);size(250);null"`
	OurContractorId      int       `orm:"column(Our_Contractor_id);null"`
	OurContractorName    string    `orm:"column(Our_Contractor_name);size(250);null"`
	CreaterId            int       `orm:"column(Creater_id);null"`
	CreaterName          string    `orm:"column(Creater_name);size(250);null"`
	CreateTime           time.Time `orm:"column(Create_time);type(datetime);null"`
	MainContent          string    `orm:"column(Main_Content);size(250);null"`
	Remarks              string    `orm:"column(Remarks);size(250);null"`
	FileSerialnumber     string    `orm:"column(File_serialnumber);size(250);null"`
	IsDelete             int       `orm:"column(isDelete);null"`
	DeleteTime           time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMContractById

func GetCRMContractById(id int) (v *CRMContract, err error)

GetCRMContractById retrieves CRMContract by Id. Returns error if Id doesn't exist

func (*CRMContract) TableName

func (t *CRMContract) TableName() string

type CRMContractAttachment

type CRMContractAttachment struct {
	ContractId int       `orm:"column(contract_id);null"`
	PageId     string    `orm:"column(page_id);size(250);null"`
	FileId     string    `orm:"column(file_id);size(250);null"`
	FileName   string    `orm:"column(file_name);size(250);null"`
	RealName   string    `orm:"column(real_name);size(250);null"`
	FileSize   int       `orm:"column(file_size);null"`
	CreateId   int       `orm:"column(create_id);null"`
	CreateName string    `orm:"column(create_name);size(250);null"`
	CreateDate time.Time `orm:"column(create_date);type(datetime);null"`
}

type CRMCustomer

type CRMCustomer struct {
	Id               int       `orm:"column(id);auto"`
	Serialnumber     string    `orm:"column(Serialnumber);size(250);null"`
	Customer         string    `orm:"column(Customer);size(250);null"`
	Address          string    `orm:"column(address);size(250);null"`
	Tel              string    `orm:"column(tel);size(250);null"`
	Fax              string    `orm:"column(fax);size(250);null"`
	Site             string    `orm:"column(site);size(250);null"`
	IndustryId       int       `orm:"column(industry_id);null"`
	Industry         string    `orm:"column(industry);size(250);null"`
	ProvincesId      int       `orm:"column(Provinces_id);null"`
	Provinces        string    `orm:"column(Provinces);size(250);null"`
	CityId           int       `orm:"column(City_id);null"`
	City             string    `orm:"column(City);size(250);null"`
	CustomerTypeId   int       `orm:"column(CustomerType_id);null"`
	CustomerType     string    `orm:"column(CustomerType);size(250);null"`
	CustomerLevelId  int       `orm:"column(CustomerLevel_id);null"`
	CustomerLevel    string    `orm:"column(CustomerLevel);size(250);null"`
	CustomerSourceId int       `orm:"column(CustomerSource_id);null"`
	CustomerSource   string    `orm:"column(CustomerSource);size(250);null"`
	DesCripe         string    `orm:"column(DesCripe);size(4000);null"`
	Remarks          string    `orm:"column(Remarks);size(4000);null"`
	DepartmentId     int       `orm:"column(Department_id);null"`
	Department       string    `orm:"column(Department);size(250);null"`
	EmployeeId       int       `orm:"column(Employee_id);null"`
	Employee         string    `orm:"column(Employee);size(250);null"`
	Privatecustomer  string    `orm:"column(privatecustomer);size(50);null"`
	Lastfollow       time.Time `orm:"column(lastfollow);type(datetime);null"`
	CreateId         int       `orm:"column(Create_id);null"`
	CreateName       string    `orm:"column(Create_name);size(250);null"`
	CreateDate       time.Time `orm:"column(Create_date);type(datetime);null"`
	IsDelete         int       `orm:"column(isDelete);null"`
	DeleteTime       time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMCustomerById

func GetCRMCustomerById(id int) (v *CRMCustomer, err error)

GetCRMCustomerById retrieves CRMCustomer by Id. Returns error if Id doesn't exist

func (*CRMCustomer) TableName

func (t *CRMCustomer) TableName() string

type CRMFollow

type CRMFollow struct {
	Id             int       `orm:"column(id);auto"`
	CustomerId     int       `orm:"column(Customer_id);null"`
	CustomerName   string    `orm:"column(Customer_name);size(250);null"`
	Follow         string    `orm:"column(Follow);size(250);null"`
	FollowDate     time.Time `orm:"column(Follow_date);type(datetime);null"`
	FollowTypeId   int       `orm:"column(Follow_Type_id);null"`
	FollowType     string    `orm:"column(Follow_Type);size(250);null"`
	DepartmentId   int       `orm:"column(department_id);null"`
	DepartmentName string    `orm:"column(department_name);size(250);null"`
	EmployeeId     int       `orm:"column(employee_id);null"`
	EmployeeName   string    `orm:"column(employee_name);size(250);null"`
	IsDelete       int       `orm:"column(isDelete);null"`
	DeleteTime     time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMFollowById

func GetCRMFollowById(id int) (v *CRMFollow, err error)

GetCRMFollowById retrieves CRMFollow by Id. Returns error if Id doesn't exist

func (*CRMFollow) TableName

func (t *CRMFollow) TableName() string

type CRMInvoice

type CRMInvoice struct {
	Id             int       `orm:"column(id);auto"`
	CustomerId     int       `orm:"column(Customer_id);null"`
	CustomerName   string    `orm:"column(Customer_name);size(250);null"`
	InvoiceNum     string    `orm:"column(invoice_num);size(250);null"`
	InvoiceTypeId  int       `orm:"column(invoice_type_id);null"`
	InvoiceType    string    `orm:"column(invoice_type);size(250);null"`
	InvoiceAmount  float32   `orm:"column(invoice_amount);null"`
	InvoiceContent string    `orm:"column(invoice_content);size(250);null"`
	InvoiceDate    time.Time `orm:"column(invoice_date);type(datetime);null"`
	CDepid         int       `orm:"column(C_depid);null"`
	CDepname       string    `orm:"column(C_depname);size(250);null"`
	CEmpid         int       `orm:"column(C_empid);null"`
	CEmpname       string    `orm:"column(C_empname);size(250);null"`
	CreateId       int       `orm:"column(create_id);null"`
	CreateName     string    `orm:"column(create_name);size(250);null"`
	CreateDate     time.Time `orm:"column(create_date);type(datetime);null"`
	OrderId        int       `orm:"column(order_id);null"`
	IsDelete       int       `orm:"column(isDelete);null"`
	DeleteTime     time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMInvoiceById

func GetCRMInvoiceById(id int) (v *CRMInvoice, err error)

GetCRMInvoiceById retrieves CRMInvoice by Id. Returns error if Id doesn't exist

func (*CRMInvoice) TableName

func (t *CRMInvoice) TableName() string

type CRMOrder

type CRMOrder struct {
	Id             int       `orm:"column(id);auto"`
	Serialnumber   string    `orm:"column(Serialnumber);size(250);null"`
	CustomerId     int       `orm:"column(Customer_id);null"`
	CustomerName   string    `orm:"column(Customer_name);size(250);null"`
	OrderDate      time.Time `orm:"column(Order_date);type(datetime);null"`
	PayTypeId      int       `orm:"column(pay_type_id);null"`
	PayType        string    `orm:"column(pay_type);size(250);null"`
	OrderDetails   string    `orm:"column(Order_details);size(250);null"`
	OrderStatusId  int       `orm:"column(Order_status_id);null"`
	OrderStatus    string    `orm:"column(Order_status);size(250);null"`
	OrderAmount    float32   `orm:"column(Order_amount);null"`
	CreateId       int       `orm:"column(create_id);null"`
	CreateDate     time.Time `orm:"column(create_date);type(datetime);null"`
	CDepId         int       `orm:"column(C_dep_id);null"`
	CDepName       string    `orm:"column(C_dep_name);size(250);null"`
	CEmpId         int       `orm:"column(C_emp_id);null"`
	CEmpName       string    `orm:"column(C_emp_name);size(250);null"`
	FDepId         int       `orm:"column(F_dep_id);null"`
	FDepName       string    `orm:"column(F_dep_name);size(250);null"`
	FEmpId         int       `orm:"column(F_emp_id);null"`
	FEmpName       string    `orm:"column(F_emp_name);size(250);null"`
	ReceiveMoney   float32   `orm:"column(receive_money);null"`
	ArrearsMoney   float32   `orm:"column(arrears_money);null"`
	InvoiceMoney   float32   `orm:"column(invoice_money);null"`
	ArrearsInvoice float32   `orm:"column(arrears_invoice);null"`
	IsDelete       int       `orm:"column(isDelete);null"`
	DeleteTime     time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMOrderById

func GetCRMOrderById(id int) (v *CRMOrder, err error)

GetCRMOrderById retrieves CRMOrder by Id. Returns error if Id doesn't exist

func (*CRMOrder) TableName

func (t *CRMOrder) TableName() string

type CRMOrderDetails

type CRMOrderDetails struct {
	OrderId     int     `orm:"column(order_id);null"`
	ProductId   int     `orm:"column(product_id);null"`
	ProductName string  `orm:"column(product_name);size(250);null"`
	Price       float32 `orm:"column(price);null"`
	Quantity    int     `orm:"column(quantity);null"`
	Unit        string  `orm:"column(unit);size(250);null"`
	Amount      float32 `orm:"column(amount);null"`
}

type CRMProduct

type CRMProduct struct {
	Id             int       `orm:"column(product_id);auto"`
	ProductName    string    `orm:"column(product_name);size(250);null"`
	CategoryId     int       `orm:"column(category_id);null"`
	CategoryName   string    `orm:"column(category_name);size(250);null"`
	Specifications string    `orm:"column(specifications);size(250);null"`
	Status         string    `orm:"column(status);size(250);null"`
	Unit           string    `orm:"column(unit);size(250);null"`
	Remarks        string    `orm:"column(remarks);size(250);null"`
	Price          float32   `orm:"column(price);null"`
	IsDelete       int       `orm:"column(isDelete);null"`
	DeleteTime     time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMProductById

func GetCRMProductById(id int) (v *CRMProduct, err error)

GetCRMProductById retrieves CRMProduct by Id. Returns error if Id doesn't exist

func (*CRMProduct) TableName

func (t *CRMProduct) TableName() string

type CRMProductCategory

type CRMProductCategory struct {
	Id              int       `orm:"column(id);auto"`
	ProductCategory string    `orm:"column(product_category);size(250);null"`
	Parentid        int       `orm:"column(parentid);null"`
	ProductIcon     string    `orm:"column(product_icon);size(250);null"`
	IsDelete        int       `orm:"column(isDelete);null"`
	DeleteId        int       `orm:"column(Delete_id);null"`
	DeleteTime      time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetCRMProductCategoryById

func GetCRMProductCategoryById(id int) (v *CRMProductCategory, err error)

GetCRMProductCategoryById retrieves CRMProductCategory by Id. Returns error if Id doesn't exist

func (*CRMProductCategory) TableName

func (t *CRMProductCategory) TableName() string

type CRMReceive

type CRMReceive struct {
	Id                   int       `orm:"column(id);auto"`
	CustomerId           int       `orm:"column(Customer_id);null"`
	CustomerName         string    `orm:"column(Customer_name);size(250);null"`
	ReceiveNum           string    `orm:"column(Receive_num);size(250);null"`
	PayTypeId            int       `orm:"column(Pay_type_id);null"`
	PayType              string    `orm:"column(Pay_type);size(250);null"`
	ReceiveAmount        float32   `orm:"column(Receive_amount);null"`
	ReceiveDate          time.Time `orm:"column(Receive_date);type(datetime);null"`
	CDepid               int       `orm:"column(C_depid);null"`
	CDepname             string    `orm:"column(C_depname);size(250);null"`
	CEmpid               int       `orm:"column(C_empid);null"`
	CEmpname             string    `orm:"column(C_empname);size(250);null"`
	CreateId             int       `orm:"column(create_id);null"`
	CreateName           string    `orm:"column(create_name);size(250);null"`
	CreateDate           time.Time `orm:"column(create_date);type(datetime);null"`
	Companyid            int       `orm:"column(companyid);null"`
	OrderId              int       `orm:"column(order_id);null"`
	Remarks              string    `orm:"column(remarks);size(250);null"`
	IsDelete             int       `orm:"column(isDelete);null"`
	DeleteTime           time.Time `orm:"column(Delete_time);type(datetime);null"`
	ReceiveDirectionId   int       `orm:"column(receive_direction_id);null"`
	ReceiveDirectionName string    `orm:"column(receive_direction_name);size(250);null"`
	ReceiveTypeId        int       `orm:"column(receive_type_id);null"`
	ReceiveTypeName      string    `orm:"column(receive_type_name);size(250);null"`
	ReceiveReal          float32   `orm:"column(receive_real);null"`
}

func GetCRMReceiveById

func GetCRMReceiveById(id int) (v *CRMReceive, err error)

GetCRMReceiveById retrieves CRMReceive by Id. Returns error if Id doesn't exist

func (*CRMReceive) TableName

func (t *CRMReceive) TableName() string

type HrDepartment

type HrDepartment struct {
	Id         int       `orm:"column(id);auto"`
	DName      string    `orm:"column(d_name);size(50);null"`
	Parentid   int       `orm:"column(parentid);null"`
	Parentname string    `orm:"column(parentname);size(50);null"`
	DType      string    `orm:"column(d_type);size(50);null"`
	DIcon      string    `orm:"column(d_icon);size(50);null"`
	DFuzeren   string    `orm:"column(d_fuzeren);size(50);null"`
	DTel       string    `orm:"column(d_tel);size(50);null"`
	DFax       string    `orm:"column(d_fax);size(50);null"`
	DAdd       string    `orm:"column(d_add);size(255);null"`
	DEmail     string    `orm:"column(d_email);size(50);null"`
	DMiaoshu   string    `orm:"column(d_miaoshu);size(255);null"`
	DOrder     int       `orm:"column(d_order);null"`
	IsDelete   int       `orm:"column(isDelete);null"`
	DeleteTime time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetHrDepartmentById

func GetHrDepartmentById(id int) (v *HrDepartment, err error)

GetHrDepartmentById retrieves HrDepartment by Id. Returns error if Id doesn't exist

func (*HrDepartment) TableName

func (t *HrDepartment) TableName() string

type HrEmployee

type HrEmployee struct {
	Id           int       `orm:"column(id);auto"`
	Uid          string    `orm:"column(uid);size(50);null"`
	Pwd          string    `orm:"column(pwd);size(50);null"`
	Name         string    `orm:"column(name);size(50);null"`
	Idcard       string    `orm:"column(idcard);size(50);null"`
	Birthday     string    `orm:"column(birthday);size(50);null"`
	DId          int       `orm:"column(d_id);null"`
	Dname        string    `orm:"column(dname);size(50);null"`
	Postid       int       `orm:"column(postid);null"`
	Post         string    `orm:"column(post);size(250);null"`
	Email        string    `orm:"column(email);size(50);null"`
	Sex          string    `orm:"column(sex);size(50);null"`
	Tel          string    `orm:"column(tel);size(50);null"`
	Status       string    `orm:"column(status);size(50);null"`
	Zhiwuid      int       `orm:"column(zhiwuid);null"`
	Zhiwu        string    `orm:"column(zhiwu);size(50);null"`
	Sort         int       `orm:"column(sort);null"`
	EntryDate    string    `orm:"column(EntryDate);size(50);null"`
	Address      string    `orm:"column(address);size(255);null"`
	Remarks      string    `orm:"column(remarks);size(255);null"`
	Education    string    `orm:"column(education);size(50);null"`
	Level        string    `orm:"column(level);size(50);null"`
	Professional string    `orm:"column(professional);size(50);null"`
	Schools      string    `orm:"column(schools);size(50);null"`
	Title        string    `orm:"column(title);size(50);null"`
	IsDelete     int       `orm:"column(isDelete);null"`
	DeleteTime   time.Time `orm:"column(Delete_time);type(datetime);null"`
	Portal       string    `orm:"column(portal);size(250);null"`
	Theme        string    `orm:"column(theme);size(250);null"`
	Canlogin     int       `orm:"column(canlogin);null"`
}

func GetHrEmployeeById

func GetHrEmployeeById(id int) (v *HrEmployee, err error)

GetHrEmployeeById retrieves HrEmployee by Id. Returns error if Id doesn't exist

func (*HrEmployee) TableName

func (t *HrEmployee) TableName() string

type HrPosition

type HrPosition struct {
	Id            int       `orm:"column(id);auto"`
	PositionName  string    `orm:"column(position_name);size(250);null"`
	PositionOrder int       `orm:"column(position_order);null"`
	PositionLevel string    `orm:"column(position_level);size(50);null"`
	CreateId      int       `orm:"column(create_id);null"`
	CreateDate    time.Time `orm:"column(create_date);type(datetime);null"`
	IsDelete      int       `orm:"column(isDelete);null"`
	DeleteTime    time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetHrPositionById

func GetHrPositionById(id int) (v *HrPosition, err error)

GetHrPositionById retrieves HrPosition by Id. Returns error if Id doesn't exist

func (*HrPosition) TableName

func (t *HrPosition) TableName() string

type HrPost

type HrPost struct {
	Id            int       `orm:"column(post_id);auto"`
	PostName      string    `orm:"column(post_name);size(255);null"`
	PositionId    int       `orm:"column(position_id);null"`
	PositionName  string    `orm:"column(position_name);size(255);null"`
	PositionOrder int       `orm:"column(position_order);null"`
	DepId         int       `orm:"column(dep_id);null"`
	Depname       string    `orm:"column(depname);size(255);null"`
	EmpId         int       `orm:"column(emp_id);null"`
	EmpName       string    `orm:"column(emp_name);size(255);null"`
	DefaultPost   int       `orm:"column(default_post);null"`
	Note          string    `orm:"column(note);size(250);null"`
	PostDescript  string    `orm:"column(post_descript);size(250);null"`
	IsDelete      int       `orm:"column(isDelete);null"`
	DeleteTime    time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetHrPostById

func GetHrPostById(id int) (v *HrPost, err error)

GetHrPostById retrieves HrPost by Id. Returns error if Id doesn't exist

func (*HrPost) TableName

func (t *HrPost) TableName() string

type ParamCity

type ParamCity struct {
	Id_RENAME  int       `orm:"column(id)"`
	Parentid   int       `orm:"column(parentid);null"`
	City       string    `orm:"column(City);size(250);null"`
	CityOrder  int       `orm:"column(City_order);null"`
	CreateId   int       `orm:"column(Create_id);null"`
	CreateDate time.Time `orm:"column(Create_date);type(datetime);null"`
	UpdateId   int       `orm:"column(Update_id);null"`
	UpdateDate time.Time `orm:"column(Update_date);type(datetime);null"`
}

type ParamSysParam

type ParamSysParam struct {
	Id          int       `orm:"column(id);auto"`
	Parentid    int       `orm:"column(parentid);null"`
	ParamsName  string    `orm:"column(params_name);size(250);null"`
	ParamsOrder int       `orm:"column(params_order);null"`
	CreateId    int       `orm:"column(Create_id);null"`
	CreateDate  time.Time `orm:"column(Create_date);type(datetime);null"`
	UpdateId    int       `orm:"column(Update_id);null"`
	UpdateDate  time.Time `orm:"column(Update_date);type(datetime);null"`
}

func GetParamSysParamById

func GetParamSysParamById(id int) (v *ParamSysParam, err error)

GetParamSysParamById retrieves ParamSysParam by Id. Returns error if Id doesn't exist

func (*ParamSysParam) TableName

func (t *ParamSysParam) TableName() string

type ParamSysParamType

type ParamSysParamType struct {
	Id_RENAME   int       `orm:"column(id)"`
	ParamsName  string    `orm:"column(params_name);size(250);null"`
	ParamsOrder int       `orm:"column(params_order);null"`
	IsDelete    int       `orm:"column(isDelete);null"`
	DeleteTime  time.Time `orm:"column(Delete_time);type(datetime);null"`
}

type PersonalCalendar

type PersonalCalendar struct {
	Id            int       `orm:"column(Id);auto"`
	EmpId         int       `orm:"column(emp_id);null"`
	EmpName       string    `orm:"column(emp_name);size(250);null"`
	Companyid     int       `orm:"column(companyid);null"`
	Subject       string    `orm:"column(Subject);size(250);null"`
	Location      string    `orm:"column(Location);size(250);null"`
	MasterId      int       `orm:"column(MasterId);null"`
	Description   string    `orm:"column(Description);size(250);null"`
	CalendarType  int8      `orm:"column(CalendarType);null"`
	StartTime     time.Time `orm:"column(StartTime);type(datetime);null"`
	EndTime       time.Time `orm:"column(EndTime);type(datetime);null"`
	IsAllDayEvent uint64    `orm:"column(IsAllDayEvent);size(1);null"`
	HasAttachment uint64    `orm:"column(HasAttachment);size(1);null"`
	Category      string    `orm:"column(Category);size(250);null"`
	InstanceType  int8      `orm:"column(InstanceType);null"`
	Attendees     string    `orm:"column(Attendees);size(250);null"`
	AttendeeNames string    `orm:"column(AttendeeNames);size(250);null"`
	OtherAttendee string    `orm:"column(OtherAttendee);size(250);null"`
	UPAccount     string    `orm:"column(UPAccount);size(250);null"`
	UPName        string    `orm:"column(UPName);size(250);null"`
	UPTime        time.Time `orm:"column(UPTime);type(datetime);null"`
	RecurringRule string    `orm:"column(RecurringRule);size(250);null"`
}

func GetPersonalCalendarById

func GetPersonalCalendarById(id int) (v *PersonalCalendar, err error)

GetPersonalCalendarById retrieves PersonalCalendar by Id. Returns error if Id doesn't exist

func (*PersonalCalendar) TableName

func (t *PersonalCalendar) TableName() string

type PersonalNotes

type PersonalNotes struct {
	Id          int       `orm:"column(id);auto"`
	EmpId       int       `orm:"column(emp_id);null"`
	EmpName     string    `orm:"column(emp_name);size(250);null"`
	NoteContent string    `orm:"column(note_content);size(250);null"`
	NoteColor   string    `orm:"column(note_color);size(250);null"`
	Xyz         string    `orm:"column(xyz);size(250);null"`
	NoteTime    time.Time `orm:"column(note_time);type(datetime);null"`
}

func GetPersonalNotesById

func GetPersonalNotesById(id int) (v *PersonalNotes, err error)

GetPersonalNotesById retrieves PersonalNotes by Id. Returns error if Id doesn't exist

func (*PersonalNotes) TableName

func (t *PersonalNotes) TableName() string

type PublicNews

type PublicNews struct {
	Id          int       `orm:"column(id);auto"`
	NewsTitle   string    `orm:"column(news_title);size(250);null"`
	NewsContent string    `orm:"column(news_content);size(250);null"`
	CreateId    int       `orm:"column(create_id);null"`
	CreateName  string    `orm:"column(create_name);size(250);null"`
	DepId       int       `orm:"column(dep_id);null"`
	DepName     string    `orm:"column(dep_name);size(250);null"`
	NewsTime    time.Time `orm:"column(news_time);type(datetime);null"`
	IsDelete    int       `orm:"column(isDelete);null"`
	DeleteTime  time.Time `orm:"column(Delete_time);type(datetime);null"`
}

func GetPublicNewsById

func GetPublicNewsById(id int) (v *PublicNews, err error)

GetPublicNewsById retrieves PublicNews by Id. Returns error if Id doesn't exist

func (*PublicNews) TableName

func (t *PublicNews) TableName() string

type PublicNotice

type PublicNotice struct {
	Id            int       `orm:"column(id);auto"`
	NoticeTitle   string    `orm:"column(notice_title);size(250);null"`
	NoticeContent string    `orm:"column(notice_content);size(250);null"`
	CreateId      int       `orm:"column(create_id);null"`
	CreateName    string    `orm:"column(create_name);size(250);null"`
	DepId         int       `orm:"column(dep_id);null"`
	DepName       string    `orm:"column(dep_name);size(250);null"`
	NoticeTime    time.Time `orm:"column(notice_time);type(datetime);null"`
}

func GetPublicNoticeById

func GetPublicNoticeById(id int) (v *PublicNotice, err error)

GetPublicNoticeById retrieves PublicNotice by Id. Returns error if Id doesn't exist

func (*PublicNotice) TableName

func (t *PublicNotice) TableName() string

type SysApp

type SysApp struct {
	Id         int    `orm:"column(id);auto"`
	AppName    string `orm:"column(App_name);size(100);null"`
	AppOrder   int    `orm:"column(App_order);null"`
	AppUrl     string `orm:"column(App_url);size(250);null"`
	AppHandler string `orm:"column(App_handler);size(250);null"`
	AppType    string `orm:"column(App_type);size(50);null"`
	AppIcon    string `orm:"column(App_icon);size(250);null"`
}

func GetSysAppById

func GetSysAppById(id int) (v *SysApp, err error)

GetSysAppById retrieves SysApp by Id. Returns error if Id doesn't exist

func (*SysApp) TableName

func (t *SysApp) TableName() string

type SysAuthority

type SysAuthority struct {
	RoleId     int       `orm:"column(Role_id)"`
	AppIds     string    `orm:"column(App_ids);size(250);null"`
	MenuIds    string    `orm:"column(Menu_ids);size(250);null"`
	ButtonIds  string    `orm:"column(Button_ids);size(250);null"`
	CreateId   int       `orm:"column(Create_id);null"`
	CreateDate time.Time `orm:"column(Create_date);type(datetime);null"`
}

type SysButton

type SysButton struct {
	Id         int    `orm:"column(Btn_id);auto"`
	BtnName    string `orm:"column(Btn_name);size(255);null"`
	BtnIcon    string `orm:"column(Btn_icon);size(50);null"`
	BtnHandler string `orm:"column(Btn_handler);size(255);null"`
	MenuId     int    `orm:"column(Menu_id);null"`
	MenuName   string `orm:"column(Menu_name);size(255);null"`
	BtnOrder   int    `orm:"column(Btn_order);null"`
}

func GetSysButtonById

func GetSysButtonById(id int) (v *SysButton, err error)

GetSysButtonById retrieves SysButton by Id. Returns error if Id doesn't exist

func (*SysButton) TableName

func (t *SysButton) TableName() string

type SysDataAuthority

type SysDataAuthority struct {
	RoleId     int       `orm:"column(Role_id);null"`
	OptionId   int       `orm:"column(option_id);null"`
	SysOption  string    `orm:"column(Sys_option);size(250);null"`
	SysView    int       `orm:"column(Sys_view);null"`
	SysAdd     int       `orm:"column(Sys_add);null"`
	SysEdit    int       `orm:"column(Sys_edit);null"`
	SysDel     int       `orm:"column(Sys_del);null"`
	CreateId   int       `orm:"column(Create_id);null"`
	CreateDate time.Time `orm:"column(Create_date);type(datetime);null"`
}

type SysInfo

type SysInfo struct {
	Id       int    `orm:"column(id);auto"`
	SysKey   string `orm:"column(sys_key);size(50);null"`
	SysValue string `orm:"column(sys_value);size(250);null"`
}

func GetSysInfoById

func GetSysInfoById(id int) (v *SysInfo, err error)

GetSysInfoById retrieves SysInfo by Id. Returns error if Id doesn't exist

func (*SysInfo) TableName

func (t *SysInfo) TableName() string

type SysLog

type SysLog struct {
	Id          int       `orm:"column(id);auto"`
	EventType   string    `orm:"column(EventType);size(250);null"`
	EventID     string    `orm:"column(EventID);size(50);null"`
	EventTitle  string    `orm:"column(EventTitle);size(250);null"`
	OriginalTxt string    `orm:"column(Original_txt);size(4000);null"`
	CurrentTxt  string    `orm:"column(Current_txt);size(4000);null"`
	UserID      int       `orm:"column(UserID);null"`
	UserName    string    `orm:"column(UserName);size(50);null"`
	IPStreet    string    `orm:"column(IPStreet);size(50);null"`
	EventDate   time.Time `orm:"column(EventDate);type(datetime);null"`
}

func GetSysLogById

func GetSysLogById(id int) (v *SysLog, err error)

GetSysLogById retrieves SysLog by Id. Returns error if Id doesn't exist

func (*SysLog) TableName

func (t *SysLog) TableName() string

type SysLogErr

type SysLogErr struct {
	Id         int       `orm:"column(id);auto"`
	ErrTypeid  int       `orm:"column(Err_typeid);null"`
	ErrType    string    `orm:"column(Err_type);size(250);null"`
	ErrTime    time.Time `orm:"column(Err_time);type(datetime);null"`
	ErrUrl     string    `orm:"column(Err_url);size(500);null"`
	ErrMessage string    `orm:"column(Err_message);size(250);null"`
	ErrSource  string    `orm:"column(Err_source);size(500);null"`
	ErrTrace   string    `orm:"column(Err_trace);size(250);null"`
	ErrEmpId   int       `orm:"column(Err_emp_id);null"`
	ErrEmpName string    `orm:"column(Err_emp_name);size(250);null"`
	ErrIp      string    `orm:"column(Err_ip);size(250);null"`
}

func GetSysLogErrById

func GetSysLogErrById(id int) (v *SysLogErr, err error)

GetSysLogErrById retrieves SysLogErr by Id. Returns error if Id doesn't exist

func (*SysLogErr) TableName

func (t *SysLogErr) TableName() string

type SysMenu

type SysMenu struct {
	Id          int    `orm:"column(Menu_id);auto"`
	MenuName    string `orm:"column(Menu_name);size(255);null"`
	Parentid    int    `orm:"column(parentid);null"`
	Parentname  string `orm:"column(parentname);size(255);null"`
	AppId       int    `orm:"column(App_id);null"`
	MenuUrl     string `orm:"column(Menu_url);size(255);null"`
	MenuIcon    string `orm:"column(Menu_icon);size(50);null"`
	MenuHandler string `orm:"column(Menu_handler);size(50);null"`
	MenuOrder   int    `orm:"column(Menu_order);null"`
	MenuType    string `orm:"column(Menu_type);size(50);null"`
}

func GetSysMenuById

func GetSysMenuById(id int) (v *SysMenu, err error)

GetSysMenuById retrieves SysMenu by Id. Returns error if Id doesn't exist

func (*SysMenu) TableName

func (t *SysMenu) TableName() string

type SysOnline

type SysOnline struct {
	UserID      int       `orm:"column(UserID);null"`
	UserName    string    `orm:"column(UserName);size(50);null"`
	LastLogTime time.Time `orm:"column(LastLogTime);type(datetime);null"`
}

type SysRole

type SysRole struct {
	Id          int       `orm:"column(RoleID);auto"`
	RoleName    string    `orm:"column(RoleName);size(255);null"`
	RoleDscript string    `orm:"column(RoleDscript);size(255);null"`
	RoleSort    int       `orm:"column(RoleSort);null"`
	CreateID    int       `orm:"column(CreateID);null"`
	CreateDate  time.Time `orm:"column(CreateDate);type(datetime);null"`
	UpdateID    int       `orm:"column(UpdateID);null"`
	UpdateDate  time.Time `orm:"column(UpdateDate);type(datetime);null"`
}

func GetSysRoleById

func GetSysRoleById(id int) (v *SysRole, err error)

GetSysRoleById retrieves SysRole by Id. Returns error if Id doesn't exist

func (*SysRole) TableName

func (t *SysRole) TableName() string

type SysRoleEmp

type SysRoleEmp struct {
	RoleID int `orm:"column(RoleID)"`
	EmpID  int `orm:"column(empID)"`
}

type ToolBatch

type ToolBatch struct {
	Id         int       `orm:"column(id);auto"`
	BatchType  string    `orm:"column(batch_type);size(50);null"`
	ODepId     int       `orm:"column(o_dep_id);null"`
	ODep       string    `orm:"column(o_dep);size(250);null"`
	OEmpId     int       `orm:"column(o_emp_id);null"`
	OEmp       string    `orm:"column(o_emp);size(250);null"`
	CDepId     int       `orm:"column(c_dep_id);null"`
	CDep       string    `orm:"column(c_dep);size(250);null"`
	CEmpId     int       `orm:"column(c_emp_id);null"`
	CEmp       string    `orm:"column(c_emp);size(250);null"`
	BCount     int       `orm:"column(b_count);null"`
	CreateId   int       `orm:"column(create_id);null"`
	CreateName string    `orm:"column(create_name);size(250);null"`
	CreateDate time.Time `orm:"column(create_date);type(datetime);null"`
}

func GetToolBatchById

func GetToolBatchById(id int) (v *ToolBatch, err error)

GetToolBatchById retrieves ToolBatch by Id. Returns error if Id doesn't exist

func (*ToolBatch) TableName

func (t *ToolBatch) TableName() string

Jump to

Keyboard shortcuts

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