projects

package
v0.0.0-...-288c4e3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDocs

func AddDocs(upd ProjectsDocs) error

func AddNeeds

func AddNeeds(upd ProjectsNeeds) error

func AddProject

func AddProject(updPro Projects) error

func AddTask

func AddTask(upd ProjectsTask) error

func AddTaskLog

func AddTaskLog(upd ProjectsTaskLog) error

func AddTeam

func AddTeam(upd ProjectsTeam) error

func AddTest

func AddTest(upd ProjectsTest) error

func AddTestLog

func AddTestLog(upd ProjectsTestLog) error

func AddVersions

func AddVersions(upd ProjectsVersions) error

func ChangeProjectNeedsStatus

func ChangeProjectNeedsStatus(id int64, status int) error

func ChangeProjectStatus

func ChangeProjectStatus(id int64, status int) error

func ChangeProjectTaskAccept

func ChangeProjectTaskAccept(id int64, acceptid int64, userid int64, note string) error

func ChangeProjectTaskStatus

func ChangeProjectTaskStatus(id int64, userid int64, status int) error

func ChangeProjectTestAccept

func ChangeProjectTestAccept(id int64, acceptid int64, userid int64, note string) error

func ChangeProjectTestStatus

func ChangeProjectTestStatus(id int64, userid int64, status int, note string) error

func CountDocs

func CountDocs(condArr map[string]string) int64

统计数量

func CountNeeds

func CountNeeds(condArr map[string]string) int64

统计数量

func CountProject

func CountProject(condArr map[string]string) int64

统计数量

func CountTask

func CountTask(condArr map[string]string) int64

func CountTest

func CountTest(condArr map[string]string) int64

func CountVersions

func CountVersions(condArr map[string]string) int64

统计数量

func DeleteDoc

func DeleteDoc(ids string, userid int64) error

func DeleteProjectTask

func DeleteProjectTask(id int64) error

func DeleteProjectTeam

func DeleteProjectTeam(id int64) error

func DeleteProjectTest

func DeleteProjectTest(id int64) error

func DeleteVersion

func DeleteVersion(ids string, userid int64) error

func GetProjectDocsTitle

func GetProjectDocsTitle(id int64) string

func GetProjectName

func GetProjectName(id int64) string

func GetProjectNeedsName

func GetProjectNeedsName(id int64) string

func GetProjectVersionsTitle

func GetProjectVersionsTitle(id int64) string

func UpdateDocs

func UpdateDocs(id int64, upd ProjectsDocs) error

func UpdateNeeds

func UpdateNeeds(id int64, upd ProjectsNeeds) error

func UpdateProject

func UpdateProject(id int64, updPro Projects) error

func UpdateTask

func UpdateTask(id int64, upd ProjectsTask) error

func UpdateTest

func UpdateTest(id int64, upd ProjectsTest) error

func UpdateVersions

func UpdateVersions(id int64, upd ProjectsVersions) error

Types

type ChartProject

type ChartProject struct {
	Value int
	Name  string
}

统计项目

func ChartProjectNeed

func ChartProjectNeed(op string, projectId int64) (num int64, err error, need []ChartProject)

统计需求指派人数量比例

func ChartProjectTask

func ChartProjectTask(op string, projectId int64) (num int64, err error, task []ChartProject)

统计任务指派人数量比例

func ChartProjectTeam

func ChartProjectTeam(projectId int64) (num int64, err error, team []ChartProject)

统计项目成员职称比例

func ChartProjectTest

func ChartProjectTest(op string, projectId int64) (num int64, err error, test []ChartProject)

统计Bug指派人数量比例

type ChartProjectInt

type ChartProjectInt struct {
	Value int
	Name  int
}

func ChartProjectNeedSource

func ChartProjectNeedSource(projectId int64) (num int64, err error, need []ChartProjectInt)

func ChartProjectTaskSource

func ChartProjectTaskSource(projectId int64) (num int64, err error, task []ChartProjectInt)

type Projects

type Projects struct {
	Id         int64 `orm:"pk;column(projectid);"`
	Userid     int64
	Name       string
	Aliasname  string
	Started    int64
	Ended      int64
	Desc       string
	Created    int64
	Status     int
	Projuserid int64
	Produserid int64
	Testuserid int64
	Publuserid int64
}

func GetProject

func GetProject(id int64) (Projects, error)

func ListMyProject

func ListMyProject(userId int64, page int, offset int) (num int64, err error, ops []Projects)

func ListProject

func ListProject(condArr map[string]string, page int, offset int) (num int64, err error, user []Projects)

项目列表

func (*Projects) TableName

func (this *Projects) TableName() string

type ProjectsDocs

type ProjectsDocs struct {
	Id         int64 `orm:"pk;column(docid);"`
	Projectid  int64
	Userid     int64
	Title      string
	Sort       int
	Keyword    string
	Content    string
	Url        string
	Attachment string
	Created    int64
	Changed    int64
}

func GetProjectDocs

func GetProjectDocs(id int64) (ProjectsDocs, error)

func ListDocsForForm

func ListDocsForForm(projectId int64, page, offset int) (ops []ProjectsDocs)

func ListProjectDocs

func ListProjectDocs(condArr map[string]string, page int, offset int) (num int64, err error, ops []ProjectsDocs)

列表

func (*ProjectsDocs) TableName

func (this *ProjectsDocs) TableName() string

type ProjectsNeeds

type ProjectsNeeds struct {
	Id         int64 `orm:"pk;column(needsid);"`
	Projectid  int64
	Userid     int64
	Name       string
	Desc       string
	Acceptid   int64
	Source     int
	Acceptance string
	Level      int
	Tasktime   int
	Attachment string
	Created    int64
	Changed    int64
	Stage      int
	Status     int
}

func GetProjectNeeds

func GetProjectNeeds(id int64) (ProjectsNeeds, error)

func ListNeedsForForm

func ListNeedsForForm(projectId int64, page, offset int) (ops []ProjectsNeeds)

func ListProjectNeeds

func ListProjectNeeds(condArr map[string]string, page int, offset int) (num int64, err error, ops []ProjectsNeeds)

列表

func (*ProjectsNeeds) TableName

func (this *ProjectsNeeds) TableName() string

type ProjectsTask

type ProjectsTask struct {
	Id         int64 `orm:"pk;column(taskid);"`
	Needsid    int64
	Projectid  int64
	Userid     int64
	Acceptid   int64
	Ccid       string
	Completeid int64
	Name       string
	Desc       string
	Note       string
	Type       int
	Level      int
	Tasktime   int
	Started    int64
	Ended      int64
	Attachment string
	Created    int64
	Changed    int64
	Status     int
	Closeid    int64
	Cancelid   int64
}

func GetProjectTask

func GetProjectTask(id int64) (ProjectsTask, error)

func ListProjectTask

func ListProjectTask(condArr map[string]string, page int, offset int) (num int64, err error, ops []ProjectsTask)

func ListTaskForForm

func ListTaskForForm(projectId int64, page, offset int) (ops []ProjectsTask)

func (*ProjectsTask) TableName

func (this *ProjectsTask) TableName() string

type ProjectsTaskLog

type ProjectsTaskLog struct {
	Id      int64 `orm:"pk;"`
	Taskid  int64
	Userid  int64
	Note    string
	Created int64
}

func ListProjectTaskLog

func ListProjectTaskLog(taskId int64) (ops []ProjectsTaskLog)

func (*ProjectsTaskLog) TableName

func (this *ProjectsTaskLog) TableName() string

type ProjectsTeam

type ProjectsTeam struct {
	Id        int64 `orm:"pk;"`
	Projectid int64
	Userid    int64
	Created   int64
}

func GetProjectTeam

func GetProjectTeam(userid, projectid int64) (ProjectsTeam, error)

func ListProjectTeam

func ListProjectTeam(projectId int64, page int, offset int) (num int64, err error, ops []ProjectsTeam)

func (*ProjectsTeam) TableName

func (this *ProjectsTeam) TableName() string

type ProjectsTest

type ProjectsTest struct {
	Id         int64 `orm:"pk;column(testid);"`
	Taskid     int64
	Needsid    int64
	Projectid  int64
	Userid     int64
	Acceptid   int64
	Ccid       string
	Completeid int64
	Name       string
	Desc       string
	Level      int
	Attachment string
	Completed  int64
	Os         string
	Browser    string
	Created    int64
	Changed    int64
	Status     int
}

func GetProjectTest

func GetProjectTest(id int64) (ProjectsTest, error)

func ListProjectTest

func ListProjectTest(condArr map[string]string, page int, offset int) (num int64, err error, ops []ProjectsTest)

func (*ProjectsTest) TableName

func (this *ProjectsTest) TableName() string

type ProjectsTestLog

type ProjectsTestLog struct {
	Id      int64 `orm:"pk;"`
	Testid  int64
	Userid  int64
	Note    string
	Created int64
}

func ListProjectTestLog

func ListProjectTestLog(testId int64) (ops []ProjectsTestLog)

func (*ProjectsTestLog) TableName

func (this *ProjectsTestLog) TableName() string

type ProjectsVersions

type ProjectsVersions struct {
	Id         int64 `orm:"pk;column(versionid);"`
	Projectid  int64
	Userid     int64
	Title      string
	Versioned  int64
	Content    string
	Sourceurl  string
	Downurl    string
	Attachment string
	Created    int64
	Changed    int64
}

func GetProjectVersions

func GetProjectVersions(id int64) (ProjectsVersions, error)

func ListProjectVersions

func ListProjectVersions(condArr map[string]string, page int, offset int) (num int64, err error, ops []ProjectsVersions)

列表

func ListVersionsForForm

func ListVersionsForForm(projectId int64, page, offset int) (ops []ProjectsVersions)

func (*ProjectsVersions) TableName

func (this *ProjectsVersions) TableName() string

Jump to

Keyboard shortcuts

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