Documentation ¶
Index ¶
- Constants
- func CreateWorkReportDaily(params *CreateWorkReportDailyRequest) (string, error)
- func CreateWorkReportDailyComments(params *CreateWorkReportDailyCommentsRequest) (string, error)
- func CreateWorkReportWeekly(params *CreateWorkReportWeeklyRequest) (string, error)
- func DeleteWorkReportDaily(id string) error
- func DeleteWorkReportDailyComments(id string) error
- func DeleteWorkReportWeekly(id string) error
- func Destroy()
- func FocusOn(params *FocusOnRequest) (string, error)
- func GetByUserIds(params *GetByUserIdsQuery) (map[string]*ReportInfo, error)
- func GetReviewCount(params *GetReviewCountRequest) (int64, error)
- func GetWorkReportDailyCommentsCount(params *GetPageWorkReportDailyCommentsQuery) (int64, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func ProjectMembers(companyId, projectId, name string, offset int) ([]string, error)
- func ReviewReport(reviewerID, reviewerName string, reportID string) error
- func UnFocusOn(params *UnFocusOnRequest) error
- func UpdateWorkReportDaily(params *UpdateWorkReportDailyRequest) error
- func UpdateWorkReportDailyComments(params *UpdateWorkReportDailyCommentsRequest) error
- func UpdateWorkReportWeekly(params *UpdateWorkReportWeeklyRequest) error
- type AddCommonRequest
- type AddFavRequest
- type CreateWorkReportDailyCommentsRequest
- type CreateWorkReportDailyCommentsResponse
- type CreateWorkReportDailyRequest
- type CreateWorkReportDailyResponse
- type CreateWorkReportProjectRecentRequest
- type CreateWorkReportProjectRequest
- type CreateWorkReportWeeklyRequest
- type CreateWorkReportWeeklyResponse
- type DeleteQuery
- type DeleteWorkReportDailyCommentsResponse
- type DeleteWorkReportDailyResponse
- type DeleteWorkReportWeeklyResponse
- type FocusOnRequest
- type FocusOnResponse
- type GetByUserIdsQuery
- type GetByUserIdsResponse
- type GetFocusOnByFocusOnMemberIDQuery
- type GetFocusOnByMemberIDQuery
- type GetFocusOnByMemberIDResponse
- type GetPageRangeLogDateQuery
- type GetPageWorkReportDailyCommentGroupByReportResponse
- type GetPageWorkReportDailyCommentsQuery
- type GetPageWorkReportDailyQuery
- type GetPageWorkReportProjectQuery
- type GetPageWorkReportProjectRecentQuery
- type GetPageWorkReportWeeklyQuery
- type GetRecentProjectQuery
- type GetReviewCountRequest
- type GetReviewCountResponse
- type GetWorkReportDailyByIDsRequest
- type GetWorkReportDailyByIDsResponse
- type GetWorkReportDailyCommentsCountResponse
- type GetWorkReportDailyCommentsResponse
- type GetWorkReportDailyResponse
- type GetWorkReportWeeklyResponse
- type GroupInfo
- type IsFocusOnRequest
- type IsFocusOnResponse
- type ProjectMembersResponse
- type ProjectPersonHoursItem
- type ProjectPersonHoursResponse
- type ProjectStatisticInfo
- type ProjectStatisticResponse
- type ReportInfo
- type ReviewReportRequest
- type Reviewer
- type RmCommonRequest
- type RmFavRequest
- type UnFocusOnRequest
- type UnFocusOnResponse
- type UpdateWorkReportDailyCommentsRequest
- type UpdateWorkReportDailyCommentsResponse
- type UpdateWorkReportDailyRequest
- type UpdateWorkReportDailyResponse
- type UpdateWorkReportProjectRecentRequest
- type UpdateWorkReportProjectRequest
- type UpdateWorkReportWeeklyRequest
- type UpdateWorkReportWeeklyResponse
- type WorkReportDailyCommentsInfo
- type WorkReportDailyInfo
- type WorkReportFocusOn
- type WorkReportWeeklyInfo
Constants ¶
View Source
const ( FocusOnMethodName = methodNamePrefix + "/workReportDaily/focus" UnFocusOnMethodName = methodNamePrefix + "/workReportDaily/unfocus" IsFocusOnMethodName = methodNamePrefix + "/workReportDaily/isfocus" GetFocusOnByMemberIDMethodName = methodNamePrefix + "/workReportDaily/focus" GetFocusOnByFocusOnMemberIDMethodName = methodNamePrefix + "/workReportDaily/focused" )
Variables ¶
This section is empty.
Functions ¶
func CreateWorkReportDaily ¶
func CreateWorkReportDaily(params *CreateWorkReportDailyRequest) (string, error)
func CreateWorkReportDailyComments ¶
func CreateWorkReportDailyComments(params *CreateWorkReportDailyCommentsRequest) (string, error)
func CreateWorkReportWeekly ¶
func CreateWorkReportWeekly(params *CreateWorkReportWeeklyRequest) (string, error)
func DeleteWorkReportDaily ¶
func DeleteWorkReportWeekly ¶
func FocusOn ¶ added in v0.9.30
func FocusOn(params *FocusOnRequest) (string, error)
func GetByUserIds ¶ added in v0.9.3
func GetByUserIds(params *GetByUserIdsQuery) (map[string]*ReportInfo, error)
func GetReviewCount ¶ added in v0.9.16
func GetReviewCount(params *GetReviewCountRequest) (int64, error)
func GetWorkReportDailyCommentsCount ¶ added in v0.9.16
func GetWorkReportDailyCommentsCount(params *GetPageWorkReportDailyCommentsQuery) (int64, error)
func ProjectMembers ¶ added in v0.12.9
func ReviewReport ¶ added in v0.8.13
func UnFocusOn ¶ added in v0.9.30
func UnFocusOn(params *UnFocusOnRequest) error
func UpdateWorkReportDaily ¶
func UpdateWorkReportDaily(params *UpdateWorkReportDailyRequest) error
func UpdateWorkReportDailyComments ¶
func UpdateWorkReportDailyComments(params *UpdateWorkReportDailyCommentsRequest) 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 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 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 DeleteWorkReportWeeklyResponse ¶
type DeleteWorkReportWeeklyResponse struct {
// contains filtered or unexported fields
}
type FocusOnRequest ¶ added in v0.9.30
type FocusOnResponse ¶ added in v0.9.30
type FocusOnResponse struct { ID string `json:"id" binding:"required"` // 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 GetFocusOnByFocusOnMemberIDQuery ¶ added in v0.9.30
type GetFocusOnByMemberIDQuery ¶ added in v0.9.30
type GetFocusOnByMemberIDResponse ¶ added in v0.9.30
type GetFocusOnByMemberIDResponse struct { Infos []WorkReportFocusOn PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetPageRangeLogDateQuery ¶ added in v0.9.19
type GetPageWorkReportDailyCommentGroupByReportResponse ¶ added in v0.11.3
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"` Order string `json:"order"` StartCreateTime string `json:"startCreateTime"` EndCreateTime string `json:"endCreateTime"` 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 GetReviewCountRequest ¶ added in v0.9.20
type GetReviewCountResponse ¶ added in v0.9.16
type GetReviewCountResponse struct { TotalCount int64 `json:"totalCount"` // contains filtered or unexported fields }
type GetWorkReportDailyByIDsRequest ¶ added in v0.11.4
type GetWorkReportDailyByIDsRequest struct {
IDs string `json:"ids"`
}
type GetWorkReportDailyByIDsResponse ¶ added in v0.11.4
type GetWorkReportDailyByIDsResponse struct { Infos []WorkReportDailyInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetWorkReportDailyCommentsCountResponse ¶ added in v0.9.16
type GetWorkReportDailyCommentsCountResponse struct { TotalCount int64 `json:"totalCount" 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 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 GroupInfo ¶ added in v0.11.3
type GroupInfo struct { ReportID string `json:"reportId"` CreateTime *time.Time `json:"createTime"` }
func GetPageWorkReportDailyCommentGroupByReport ¶ added in v0.11.3
func GetPageWorkReportDailyCommentGroupByReport(params *GetPageWorkReportDailyCommentsQuery) ([]GroupInfo, int64, error)
type IsFocusOnRequest ¶ added in v0.9.30
type IsFocusOnResponse ¶ added in v0.9.30
type IsFocusOnResponse struct { IsFocusOn bool Info *WorkReportFocusOn // contains filtered or unexported fields }
type ProjectMembersResponse ¶ added in v0.12.9
type ProjectMembersResponse struct { Infos []string `json:"infos"` // contains filtered or unexported fields }
type ProjectPersonHoursItem ¶ added in v0.11.1
type ProjectPersonHoursItem struct { LogDate string `json:"logDate"` Duration float64 `json:"duration"` Person int `json:"person"` }
func ProjectPersonHours ¶ added in v0.11.1
func ProjectPersonHours(companyId, projectId string, offset int) ([]ProjectPersonHoursItem, error)
type ProjectPersonHoursResponse ¶ added in v0.11.1
type ProjectPersonHoursResponse struct { Infos []ProjectPersonHoursItem `json:"infos"` // contains filtered or unexported fields }
type ProjectStatisticInfo ¶ added in v0.12.9
type ProjectStatisticInfo struct { EarlyReportDate string `json:"earlyReportDate"` LatestReportDate string `json:"latestReportDate"` ProjectPersistentDay int `json:"projectPersistentDay"` WorkDay int `json:"workDay"` TotalWorkTime float64 `json:"totalWorkTime"` PersonDayNum float64 `json:"personDayNum"` RecentWorkTime float64 `json:"recentWorkTime"` RecentPersonDayNum float64 `json:"recentPersonDayNum"` AvgWorkTimeSaturation float64 `json:"avgWorkTimeSaturation"` RecentWorkTimeSaturation float64 `json:"recentWorkTimeSaturation"` }
func ProjectStatistic ¶ added in v0.12.9
func ProjectStatistic(companyId, projectId string) (*ProjectStatisticInfo, error)
type ProjectStatisticResponse ¶ added in v0.12.9
type ProjectStatisticResponse struct { Info *ProjectStatisticInfo `json:"info"` // contains filtered or unexported fields }
type ReportInfo ¶ added in v0.9.3
type ReportInfo struct { MemberName string `json:"memberName"` WriteFlag bool `json:"writeFlag"` WriteTotal int64 `json:"writeTotal"` LeaveFlag bool `json:"leaveFlag"` Comments int `json:"comments"` Reviews int `json:"reviews"` Hours float64 `json:"hours"` ReviewUserIDs []string `json:"reviewUserId"` }
type ReviewReportRequest ¶ added in v0.8.13
type RmCommonRequest ¶ added in v0.2.3
type RmFavRequest ¶ added in v0.2.3
type UnFocusOnRequest ¶ added in v0.9.30
type UnFocusOnResponse ¶ added in v0.9.30
type UnFocusOnResponse struct {
// 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 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 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 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"` Comments []WorkReportDailyCommentsInfo `json:"comments"` CreateAt string `json:"createAt"` UpdateAt string `json:"updateAt"` }
func GetPageRangeLogDate ¶ added in v0.9.19
func GetPageRangeLogDate(params *GetPageRangeLogDateQuery) ([]WorkReportDailyInfo, int64, error)
func GetWorkReportDailyByIDs ¶ added in v0.11.4
func GetWorkReportDailyByIDs(params *GetWorkReportDailyByIDsRequest) ([]WorkReportDailyInfo, error)
func GetWorkReportDailys ¶
func GetWorkReportDailys(params *GetPageWorkReportDailyQuery) ([]WorkReportDailyInfo, int64, error)
type WorkReportFocusOn ¶ added in v0.9.30
type WorkReportFocusOn struct { ID string `json:"id"` CompanyID string `json:"companyId"` MemberID string `json:"memberId"` FocusOnMemberID string `json:"focusOnMemberId"` }
func GetFocusOnByFocusOnMemberID ¶ added in v0.9.30
func GetFocusOnByFocusOnMemberID(params *GetFocusOnByFocusOnMemberIDQuery) ([]WorkReportFocusOn, error)
func GetFocusOnByMemberID ¶ added in v0.9.30
func GetFocusOnByMemberID(params *GetFocusOnByMemberIDQuery) ([]WorkReportFocusOn, error)
func IsFocusOn ¶ added in v0.9.30
func IsFocusOn(params *IsFocusOnRequest) (bool, *WorkReportFocusOn, 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.