Documentation ¶
Index ¶
- type DBInfo
- type ProjectDB
- type ProjectPg
- func (ppg ProjectPg) Close()
- func (ppg ProjectPg) InnerArchiveProject(historyTableName string, projectID int) (err error)
- func (ppg ProjectPg) Insert(pi project.Info) (projectID int, err error)
- func (ppg ProjectPg) QueryAllInfo() (pis []project.Info, err error)
- func (ppg ProjectPg) QueryByDepartmentCode(dc string) (pis []project.Info, err error)
- func (ppg ProjectPg) QueryByID(projectID int) (pi project.Info, err error)
- func (ppg ProjectPg) QueryByOwner(userID int) (pis []project.Info, err error)
- func (ppg ProjectPg) UpdateAllocInfo(ali project.AllocInfo) (err error)
- func (ppg ProjectPg) UpdateAllocNum(ali project.AllocNum) (err error)
- func (ppg ProjectPg) UpdateApplyInfo(ai project.ApplyInfo) (err error)
- func (ppg ProjectPg) UpdateBasicInfo(bi project.BasicInfo) (err error)
- func (ppg ProjectPg) UpdateCodeInfo(pc project.CodeInfo) (err error)
- func (ppg ProjectPg) UpdateStatusInfo(si project.StatusInfo) (err error)
- type ProjectReadOnlyDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectDB ¶
type ProjectDB interface { ProjectReadOnlyDB /////////////////////////////////////////////////////////////////////////////// Insert(project.Info) (projectID int, err error) UpdateBasicInfo(bi project.BasicInfo) (err error) UpdateCodeInfo(pc project.CodeInfo) (err error) UpdateStatusInfo(si project.StatusInfo) (err error) UpdateApplyInfo(ai project.ApplyInfo) (err error) UpdateAllocNum(ali project.AllocNum) (err error) UpdateAllocInfo(ali project.AllocInfo) (err error) // 同一数据库内归档 InnerArchiveProject(historyTableName string, projectID int) (err error) }
type ProjectPg ¶
type ProjectPg struct {
DBInfo
}
func (ProjectPg) InnerArchiveProject ¶
func (ProjectPg) QueryByDepartmentCode ¶
func (ProjectPg) QueryByOwner ¶
func (ProjectPg) UpdateAllocInfo ¶
func (ProjectPg) UpdateAllocNum ¶
func (ProjectPg) UpdateApplyInfo ¶
func (ProjectPg) UpdateBasicInfo ¶
func (ProjectPg) UpdateCodeInfo ¶
func (ProjectPg) UpdateStatusInfo ¶
func (ppg ProjectPg) UpdateStatusInfo(si project.StatusInfo) (err error)
Click to show internal directories.
Click to hide internal directories.