Documentation ¶
Index ¶
- func AddFav(companyId, userId, projectId string) error
- func CreateWorkReportDaily(params *CreateWorkReportDailyRequest) (string, error)
- func CreateWorkReportDailyComments(params *CreateWorkReportDailyCommentsRequest) (string, error)
- func CreateWorkReportProject(params *CreateWorkReportProjectRequest) (string, error)
- func CreateWorkReportProjectRecent(params *CreateWorkReportProjectRecentRequest) (string, error)
- func CreateWorkReportWeekly(params *CreateWorkReportWeeklyRequest) (string, error)
- func DeleteWorkReportDaily(id string) error
- func DeleteWorkReportDailyComments(id string) error
- func DeleteWorkReportProject(id string) error
- func DeleteWorkReportProjectRecent(projectId, memberId, companyId string) error
- func DeleteWorkReportWeekly(id string) error
- func Destroy()
- func GetByUserIds(params *GetByUserIdsQuery) (map[string]*ReportInfo, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func ReviewReport(reviewerID, reviewerName string, reportID string) error
- func RmFav(companyId, userId, projectId string) error
- func SortWorkReportProject(companyId, memberId string, projectIds ...string) ([]string, error)
- func UpdateWorkReportDaily(params *UpdateWorkReportDailyRequest) error
- func UpdateWorkReportDailyComments(params *UpdateWorkReportDailyCommentsRequest) error
- func UpdateWorkReportProject(params *UpdateWorkReportProjectRequest) error
- func UpdateWorkReportProjectRecent(params *UpdateWorkReportProjectRecentRequest) error
- func UpdateWorkReportWeekly(params *UpdateWorkReportWeeklyRequest) error
- type AddCommonRequest
- type AddFavRequest
- type CreateWorkReportDailyCommentsRequest
- type CreateWorkReportDailyCommentsResponse
- type CreateWorkReportDailyRequest
- type CreateWorkReportDailyResponse
- type CreateWorkReportProjectRecentRequest
- type CreateWorkReportProjectRecentResponse
- type CreateWorkReportProjectRequest
- type CreateWorkReportProjectResponse
- type CreateWorkReportWeeklyRequest
- type CreateWorkReportWeeklyResponse
- type DeleteQuery
- type DeleteWorkReportDailyCommentsResponse
- type DeleteWorkReportDailyResponse
- type DeleteWorkReportProjectRecentResponse
- type DeleteWorkReportProjectResponse
- type DeleteWorkReportWeeklyResponse
- type GetByUserIdsQuery
- type GetByUserIdsResponse
- type GetPageWorkReportDailyCommentsQuery
- type GetPageWorkReportDailyQuery
- type GetPageWorkReportProjectQuery
- type GetPageWorkReportProjectRecentQuery
- type GetPageWorkReportWeeklyQuery
- type GetRecentProjectQuery
- type GetRecentProjectResponse
- type GetUserProjectResponse
- type GetWorkReportDailyCommentsResponse
- type GetWorkReportDailyResponse
- type GetWorkReportProjectRecentResponse
- type GetWorkReportProjectResponse
- type GetWorkReportWeeklyResponse
- type ReportInfo
- type ReviewReportRequest
- type Reviewer
- type RmCommonRequest
- type RmFavRequest
- type SortProjectResponse
- type UpdateWorkReportDailyCommentsRequest
- type UpdateWorkReportDailyCommentsResponse
- type UpdateWorkReportDailyRequest
- type UpdateWorkReportDailyResponse
- type UpdateWorkReportProjectRecentRequest
- type UpdateWorkReportProjectRecentResponse
- type UpdateWorkReportProjectRequest
- type UpdateWorkReportProjectResponse
- type UpdateWorkReportWeeklyRequest
- type UpdateWorkReportWeeklyResponse
- type UserProjectInfo
- type WorkReportDailyCommentsInfo
- type WorkReportDailyInfo
- type WorkReportProjectInfo
- type WorkReportProjectRecentInfo
- type WorkReportWeeklyInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWorkReportDaily ¶
func CreateWorkReportDaily(params *CreateWorkReportDailyRequest) (string, error)
func CreateWorkReportDailyComments ¶
func CreateWorkReportDailyComments(params *CreateWorkReportDailyCommentsRequest) (string, error)
func CreateWorkReportProject ¶
func CreateWorkReportProject(params *CreateWorkReportProjectRequest) (string, error)
func CreateWorkReportProjectRecent ¶
func CreateWorkReportProjectRecent(params *CreateWorkReportProjectRecentRequest) (string, error)
func CreateWorkReportWeekly ¶
func CreateWorkReportWeekly(params *CreateWorkReportWeeklyRequest) (string, error)
func DeleteWorkReportDaily ¶
func DeleteWorkReportProject ¶
func DeleteWorkReportWeekly ¶
func GetByUserIds ¶ added in v0.9.3
func GetByUserIds(params *GetByUserIdsQuery) (map[string]*ReportInfo, error)
func ReviewReport ¶ added in v0.8.13
func SortWorkReportProject ¶ added in v0.3.0
func UpdateWorkReportDaily ¶
func UpdateWorkReportDaily(params *UpdateWorkReportDailyRequest) error
func UpdateWorkReportDailyComments ¶
func UpdateWorkReportDailyComments(params *UpdateWorkReportDailyCommentsRequest) error
func UpdateWorkReportProject ¶
func UpdateWorkReportProject(params *UpdateWorkReportProjectRequest) error
func UpdateWorkReportProjectRecent ¶
func UpdateWorkReportProjectRecent(params *UpdateWorkReportProjectRecentRequest) error
func UpdateWorkReportWeekly ¶
func UpdateWorkReportWeekly(params *UpdateWorkReportWeeklyRequest) error
Types ¶
type AddCommonRequest ¶ added in v0.2.3
type AddFavRequest ¶ added in v0.2.3
type CreateWorkReportDailyCommentsRequest ¶
type CreateWorkReportDailyCommentsRequest struct { ReportID string `json:"reportId"` Comment string `json:"comment"` TargetMemberID string `json:"targetMemberId"` CompanyID string `json:"companyId"` IsRead bool `json:"isRead"` MemberID string `json:"memberId"` IsReply bool `json:"isReply"` Duration float64 `json:"duration"` }
type CreateWorkReportDailyCommentsResponse ¶
type CreateWorkReportDailyCommentsResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type CreateWorkReportDailyRequest ¶
type CreateWorkReportDailyRequest struct { CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"memberId"` MemberName string `json:"memberName"` Actual string `json:"actual"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Remark string `json:"remark"` Year int `json:"year"` Week int `json:"week"` LogDate string `json:"logDate"` Stage uint8 `json:"stage"` }
type CreateWorkReportDailyResponse ¶
type CreateWorkReportDailyResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type CreateWorkReportProjectRecentResponse ¶
type CreateWorkReportProjectRecentResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type CreateWorkReportProjectRequest ¶
type CreateWorkReportProjectRequest struct { Name string `json:"name"` StartDate string `json:"startDate"` EndDate string `json:"endDate"` MgmtMemberID string `json:"mgmtMemberID"` CompanyID string `json:"companyID"` DeptID string `json:"deptID"` DeptName string `json:"deptName"` Remark string `json:"remark"` No string `json:"no"` ProjectManagerID string `json:"projectManagerId"` Participants string `json:"participants"` Schedule string `json:"schedule"` Milepost string `json:"milepost"` }
type CreateWorkReportProjectResponse ¶
type CreateWorkReportProjectResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type CreateWorkReportWeeklyRequest ¶
type CreateWorkReportWeeklyRequest struct { CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"memberId"` MemberName string `json:"memberName"` Actual string `json:"actual"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Remark string `json:"remark"` Year int `json:"year"` Week int `json:"week"` StartDayOfWeek string `json:"startDayOfWeek"` EndDayOfWeek string `json:"endDayOfWeek"` Stage uint8 `json:"stage"` }
type CreateWorkReportWeeklyResponse ¶
type CreateWorkReportWeeklyResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type DeleteQuery ¶
type DeleteWorkReportDailyCommentsResponse ¶
type DeleteWorkReportDailyCommentsResponse struct {
// contains filtered or unexported fields
}
type DeleteWorkReportDailyResponse ¶
type DeleteWorkReportDailyResponse struct {
// contains filtered or unexported fields
}
type DeleteWorkReportProjectRecentResponse ¶
type DeleteWorkReportProjectRecentResponse struct {
// contains filtered or unexported fields
}
type DeleteWorkReportProjectResponse ¶
type DeleteWorkReportProjectResponse struct {
// contains filtered or unexported fields
}
type DeleteWorkReportWeeklyResponse ¶
type DeleteWorkReportWeeklyResponse struct {
// contains filtered or unexported fields
}
type GetByUserIdsQuery ¶ added in v0.9.3
type GetByUserIdsResponse ¶ added in v0.9.3
type GetByUserIdsResponse struct { Infos map[string]*ReportInfo // contains filtered or unexported fields }
type GetPageWorkReportDailyCommentsQuery ¶
type GetPageWorkReportDailyCommentsQuery struct { ID string `json:"id"` ReportID string `json:"reportId"` Comment string `json:"comment"` TargetMemberID string `json:"targetMemberId"` CompanyID string `json:"companyId"` IsRead int `json:"isRead"` IsReply int `json:"isReply"` MemberID string `json:"memberId"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` }
type GetPageWorkReportDailyQuery ¶
type GetPageWorkReportDailyQuery struct { ID string `json:"id"` CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"MemberId"` MemberName string `json:"memberName"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Year int `json:"year"` Week int `json:"week"` LogDate string `json:"logDate"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` }
type GetPageWorkReportWeeklyQuery ¶
type GetPageWorkReportWeeklyQuery struct { ID string `json:"id"` CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"MemberId"` MemberName string `json:"memberName"` Actual string `json:"actual"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Remark string `json:"remark"` Year int `json:"year"` Week int `json:"week"` StartDayOfWeek string `json:"startDayOfWeek"` EndDayOfWeek string `json:"endDayOfWeek"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` }
type GetRecentProjectQuery ¶
type GetRecentProjectResponse ¶
type GetRecentProjectResponse struct { Infos []WorkReportProjectInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetUserProjectResponse ¶ added in v0.3.0
type GetUserProjectResponse struct { Infos []UserProjectInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetWorkReportDailyCommentsResponse ¶
type GetWorkReportDailyCommentsResponse struct { PageNo int `json:"pageNo" binding:"required"` TotalCount int64 `json:"totalCount" binding:"required"` Infos []WorkReportDailyCommentsInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetWorkReportDailyResponse ¶
type GetWorkReportDailyResponse struct { PageNo int `json:"pageNo" binding:"required"` TotalCount int64 `json:"totalCount" binding:"required"` Infos []WorkReportDailyInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetWorkReportProjectRecentResponse ¶
type GetWorkReportProjectRecentResponse struct { PageNo int `json:"pageNo" binding:"required"` TotalCount int64 `json:"totalCount" binding:"required"` Infos []WorkReportProjectRecentInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetWorkReportProjectResponse ¶
type GetWorkReportProjectResponse struct { PageNo int `json:"pageNo" binding:"required"` TotalCount int64 `json:"totalCount" binding:"required"` Infos []WorkReportProjectInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetWorkReportWeeklyResponse ¶
type GetWorkReportWeeklyResponse struct { PageNo int `json:"pageNo" binding:"required"` TotalCount int64 `json:"totalCount" binding:"required"` Infos []WorkReportWeeklyInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type ReportInfo ¶ added in v0.9.3
type ReviewReportRequest ¶ added in v0.8.13
type RmCommonRequest ¶ added in v0.2.3
type RmFavRequest ¶ added in v0.2.3
type SortProjectResponse ¶ added in v0.3.0
type SortProjectResponse struct { ProjectIds []string `json:"projectIds"` // contains filtered or unexported fields }
type UpdateWorkReportDailyCommentsRequest ¶
type UpdateWorkReportDailyCommentsRequest struct { ID string `json:"id"` ReportID string `json:"reportId"` Comment string `json:"comment"` TargetMemberID string `json:"TargetMemberId"` CompanyID string `json:"companyId"` IsRead bool `json:"isRead"` MemberID string `json:"memberId"` Duration float64 `json:"duration"` }
type UpdateWorkReportDailyCommentsResponse ¶
type UpdateWorkReportDailyCommentsResponse struct {
// contains filtered or unexported fields
}
type UpdateWorkReportDailyRequest ¶
type UpdateWorkReportDailyRequest struct { ID string `json:"id"` CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"memberId"` MemberName string `json:"memberName"` Actual string `json:"actual"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Remark string `json:"remark"` Year int `json:"year"` Week int `json:"week"` LogDate string `json:"logDate"` Stage uint8 `json:"stage"` }
type UpdateWorkReportDailyResponse ¶
type UpdateWorkReportDailyResponse struct {
// contains filtered or unexported fields
}
type UpdateWorkReportProjectRecentResponse ¶
type UpdateWorkReportProjectRecentResponse struct {
// contains filtered or unexported fields
}
type UpdateWorkReportProjectRequest ¶
type UpdateWorkReportProjectRequest struct { ID string `json:"id"` Name string `json:"name"` StartDate string `json:"startDate"` EndDate string `json:"endDate"` MgmtMemberID string `json:"mgmtMemberID"` CompanyID string `json:"companyID"` DeptID string `json:"deptID"` DeptName string `json:"deptName"` Remark string `json:"remark"` No string `json:"no"` ProjectManagerID string `json:"projectManagerId"` Participants string `json:"participants"` Schedule string `json:"schedule"` Milepost string `json:"milepost"` }
type UpdateWorkReportProjectResponse ¶
type UpdateWorkReportProjectResponse struct {
// contains filtered or unexported fields
}
type UpdateWorkReportWeeklyRequest ¶
type UpdateWorkReportWeeklyRequest struct { ID string `json:"id"` CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"memberId"` MemberName string `json:"memberName"` Actual string `json:"actual"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Remark string `json:"remark"` Year int `json:"year"` Week int `json:"week"` StartDayOfWeek string `json:"startDayOfWeek"` EndDayOfWeek string `json:"endDayOfWeek"` Stage uint8 `json:"stage"` }
type UpdateWorkReportWeeklyResponse ¶
type UpdateWorkReportWeeklyResponse struct {
// contains filtered or unexported fields
}
type UserProjectInfo ¶ added in v0.3.0
type UserProjectInfo struct { WorkReportProjectInfo Fav bool `json:"fav"` }
func GetRecentProject ¶
func GetRecentProject(params *GetRecentProjectQuery) ([]UserProjectInfo, error)
func GetSortedProject ¶ added in v0.2.4
func GetSortedProject(companyId, memberId, name string) ([]UserProjectInfo, error)
func ProjectManagerGetProject ¶ added in v0.2.4
func ProjectManagerGetProject(companyId, memberId string) ([]UserProjectInfo, error)
type WorkReportDailyCommentsInfo ¶
type WorkReportDailyCommentsInfo struct { ID string `json:"id"` ReportID string `json:"reportId"` Comment string `json:"comment"` TargetMemberID string `json:"targetMemberId"` CompanyID string `json:"companyId"` IsRead bool `json:"isRead"` MemberID string `json:"memberId"` CreateTime string `json:"createTime"` IsReply bool `json:"isReply"` Duration float64 `json:"duration"` }
func GetWorkReportDailyComments ¶
func GetWorkReportDailyComments(params *GetPageWorkReportDailyCommentsQuery) ([]WorkReportDailyCommentsInfo, int64, error)
type WorkReportDailyInfo ¶
type WorkReportDailyInfo struct { ID string `json:"id"` CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"memberId"` MemberName string `json:"memberName"` Actual string `json:"actual"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Remark string `json:"remark"` Year int `json:"year"` Week int `json:"week"` LogDate string `json:"logDate"` Stage uint8 `json:"stage"` Reviewers []Reviewer `json:"reviewers"` }
func GetWorkReportDailys ¶
func GetWorkReportDailys(params *GetPageWorkReportDailyQuery) ([]WorkReportDailyInfo, int64, error)
type WorkReportProjectInfo ¶
type WorkReportProjectInfo struct { ID string `json:"id"` Name string `json:"name"` StartDate string `json:"startDate"` EndDate string `json:"endDate"` MgmtMemberID string `json:"mgmtMemberID"` CompanyID string `json:"companyID"` DeptID string `json:"deptID"` DeptName string `json:"deptName"` Remark string `json:"remark"` No string `json:"no"` ProjectManagerID string `json:"projectManagerId"` Participants string `json:"participants"` Schedule string `json:"schedule"` Milepost string `json:"milepost"` }
func GetFav ¶ added in v0.2.3
func GetFav(companyId, userId string, pageNo, pageSize int) ([]WorkReportProjectInfo, int64, error)
func GetWorkReportProjects ¶
func GetWorkReportProjects(params *GetPageWorkReportProjectQuery) ([]WorkReportProjectInfo, int64, error)
type WorkReportProjectRecentInfo ¶
type WorkReportProjectRecentInfo struct { ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` MemberID string `json:"MemberId"` CompanyID string `json:"companyId"` UpdateTime string `json:"updateTime"` }
func GetWorkReportProjectRecent ¶
func GetWorkReportProjectRecent(params *GetPageWorkReportProjectRecentQuery) ([]WorkReportProjectRecentInfo, int64, error)
type WorkReportWeeklyInfo ¶
type WorkReportWeeklyInfo struct { ID string `json:"id"` CompanyID string `json:"companyId"` ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` DeptID string `json:"deptId"` DeptName string `json:"deptName"` MemberID string `json:"memberId"` MemberName string `json:"memberName"` Actual string `json:"actual"` Priority uint8 `json:"priority"` Progress string `json:"progress"` Duration float64 `json:"duration"` OnPlan uint8 `json:"onPlan"` Remark string `json:"remark"` Year int `json:"year"` Week int `json:"week"` StartDayOfWeek string `json:"startDayOfWeek"` EndDayOfWeek string `json:"endDayOfWeek"` Stage uint8 `json:"stage"` }
func GetWorkReportWeekly ¶
func GetWorkReportWeekly(params *GetPageWorkReportWeeklyQuery) ([]WorkReportWeeklyInfo, int64, error)
Click to show internal directories.
Click to hide internal directories.