mbwr

package
v0.15.108 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 CreateEvaluate added in v0.15.104

func CreateEvaluate(param *CreateEvaluateParam) error

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 DeleteEvaluate added in v0.15.104

func DeleteEvaluate(param *DeleteEvaluateParam) error

func DeleteWorkReportDaily

func DeleteWorkReportDaily(id string) error

func DeleteWorkReportDailyComments

func DeleteWorkReportDailyComments(id string) error

func DeleteWorkReportWeekly

func DeleteWorkReportWeekly(id string) error

func Destroy

func Destroy()

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 GetProjectWorkHours added in v0.15.48

func GetProjectWorkHours(params *ProjectWorkHoursRequest) (map[string]float64, 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 Init

func Init(baseUrl string, timeoutSec time.Duration)

func ModifyEvaluate added in v0.15.104

func ModifyEvaluate(param *ModifyEvaluateParam) error

func ProjectMembers added in v0.12.9

func ProjectMembers(companyId, projectId, name string, offset int) ([]string, error)

func ReviewReport added in v0.8.13

func ReviewReport(reviewerID, reviewerName string, reportID string) error

func UnFocusOn added in v0.9.30

func UnFocusOn(params *UnFocusOnRequest) error

func UpdatePermissionBatch added in v0.15.104

func UpdatePermissionBatch(param *UpdatePermissionBatchParam) error

func UpdateWorkReportDaily

func UpdateWorkReportDaily(params *UpdateWorkReportDailyRequest) error

func UpdateWorkReportDailyComments

func UpdateWorkReportDailyComments(params *UpdateWorkReportDailyCommentsRequest) error

func UpdateWorkReportWeekly

func UpdateWorkReportWeekly(params *UpdateWorkReportWeeklyRequest) error

func UpsertEvaluateConfig added in v0.15.104

func UpsertEvaluateConfig(param *EvaluateConfig) error

Types

type AddCommonRequest added in v0.2.3

type AddCommonRequest struct {
	CompanyId string `json:"companyId"`
	UserId    string `json:"userId"`
	ProjectId string `json:"projectId"`
}

type AddFavRequest added in v0.2.3

type AddFavRequest struct {
	CompanyId string `json:"companyId"`
	UserId    string `json:"userId"`
	ProjectId string `json:"projectId"`
}

type CollectHours added in v0.15.89

type CollectHours struct {
	LogDate string  `json:"logDate"`
	Hours   float64 `json:"hours"`
}

func CollectHoursByDate added in v0.15.89

func CollectHoursByDate(param *CollectHoursByDateParam) ([]CollectHours, error)

type CollectHoursByDateParam added in v0.15.89

type CollectHoursByDateParam struct {
	ProjectId string   `json:"projectId,omitempty"`
	Dates     []string `json:"dates,omitempty"`
}

type CollectHoursByDateResponse added in v0.15.89

type CollectHoursByDateResponse struct {
	Infos []CollectHours `json:"infos"`
	// contains filtered or unexported fields
}

type CreateEvaluateParam added in v0.15.104

type CreateEvaluateParam struct {
	CompanyId          string      `json:"companyId,omitempty"`
	WorkReportId       string      `json:"workReportId,omitempty"`
	EvaluatePersonName string      `json:"evaluatePersonName,omitempty"`
	EvaluatePersonId   string      `json:"evaluatePersonId,omitempty"`
	Remark             string      `json:"remark,omitempty"`
	Scores             []ItemScore `json:"scores,omitempty"`
}

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 CreateWorkReportProjectRecentRequest

type CreateWorkReportProjectRecentRequest struct {
	ProjectID   string `json:"projectId"`
	ProjectName string `json:"projectName"`
	MemberID    string `json:"MemberId"`
	CompanyID   string `json:"companyId"`
	UpdateTime  string `json:"updateTime"`
}

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 DailyProjectCollectInfo added in v0.15.88

type DailyProjectCollectInfo struct {
	ProjectId       string  `json:"projectId,omitempty"`
	ProjectName     string  `json:"projectName"`
	ReportPeopleSum int     `json:"reportPeopleSum,omitempty"`
	ReportCountSum  int     `json:"reportCountSum,omitempty"`
	ReportHoursSum  float64 `json:"reportHoursSum,omitempty"`
	CommentCountSum int     `json:"commentCountSum,omitempty"`
}

func ProjectDailyReport added in v0.15.88

func ProjectDailyReport(param *ProjectDailyReportParam) ([]DailyProjectCollectInfo, error)

type DeleteEvaluateParam added in v0.15.104

type DeleteEvaluateParam struct {
	EvaluatePersonId string `form:"evaluatePersonId,omitempty"`
	RecordId         string `form:"recordId,omitempty"`
}

type DeleteQuery

type DeleteQuery struct {
	ProjectID string `json:"projectId"`
	MemberID  string `json:"memberId"`
	CompanyID string `json:"companyId"`
}

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 DepartCollectInfo added in v0.15.92

type DepartCollectInfo struct {
	DeptName    string              `json:"deptName,omitempty"`
	WorkHours   float64             `json:"workHours,omitempty"`
	PersonCount int                 `json:"personCount,omitempty"`
	PersonInfos []PersonCollectInfo `json:"personInfos,omitempty"`
}

func SumDeptAndPersonReport added in v0.15.92

func SumDeptAndPersonReport(param *SumDeptAndPersonReportParam) ([]DepartCollectInfo, error)

type EvaluateConfig added in v0.15.104

type EvaluateConfig struct {
	IsEnabled    bool           `json:"isEnabled,omitempty"`
	SelfEvaluate bool           `json:"selfEvaluate,omitempty"`
	ChargePeople []string       `json:"chargePeople,omitempty"`
	Items        []EvaluateItem `json:"items,omitempty"`
	CompanyId    string         `json:"companyId,omitempty"`
}

func GetEvaluateConfig added in v0.15.104

func GetEvaluateConfig(companyId string) (*EvaluateConfig, error)

type EvaluateInfo added in v0.15.104

type EvaluateInfo struct {
	WorkReportId       string `json:"workReportId"`
	EvaluatePersonName string `json:"evaluatePersonName,omitempty"` //评价人
	MemberName         string `json:"memberName,omitempty"`         //被评价人
	ProjectName        string `json:"projectName,omitempty"`        //项目名称
	LogDate            string `json:"logDate,omitempty"`            //日报日期
	Scores             string `json:"scores,omitempty"`             //评分
}

type EvaluateItem added in v0.15.104

type EvaluateItem struct {
	Name   string `json:"name"`
	Weight uint8  `json:"weight"`
	Order  uint8  `json:"order"`
}

func GetEvaluateItems added in v0.15.104

func GetEvaluateItems(companyId string) ([]EvaluateItem, error)

type EvaluatePermission added in v0.15.104

type EvaluatePermission struct {
	UserId   string `json:"userId,omitempty"`
	Perm     uint8  `json:"perm,omitempty"`
	UserName string `json:"userName"`
}

func GetEvaluatePermissions added in v0.15.104

func GetEvaluatePermissions(companyId string) ([]EvaluatePermission, error)

type FocusOnRequest added in v0.9.30

type FocusOnRequest struct {
	CompanyID       string `json:"companyId"`
	MemberID        string `json:"memberId"`
	FocusOnMemberID string `json:"focusOnMemberId"`
}

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 GetByUserIdsQuery struct {
	CompanyID string `form:"companyId"`
	MemberIDs string `form:"memberIds"`
	LogDate   string `form:"logDate"`
}

type GetByUserIdsResponse added in v0.9.3

type GetByUserIdsResponse struct {
	Infos map[string]*ReportInfo
	// contains filtered or unexported fields
}

type GetEvaluateConfigResponse added in v0.15.104

type GetEvaluateConfigResponse struct {
	Data *EvaluateConfig `json:"data"`
	// contains filtered or unexported fields
}

type GetEvaluateItemsResponse added in v0.15.104

type GetEvaluateItemsResponse struct {
	Data []EvaluateItem `json:"data"`
	// contains filtered or unexported fields
}

type GetEvaluatePermissionsResponse added in v0.15.104

type GetEvaluatePermissionsResponse struct {
	Data []EvaluatePermission `json:"data"`
	// contains filtered or unexported fields
}

type GetFocusOnByFocusOnMemberIDQuery added in v0.9.30

type GetFocusOnByFocusOnMemberIDQuery struct {
	CompanyID       string `form:"companyId"`
	FocusOnMemberID string `form:"focusOnMemberId"`
	PageNo          int    `form:"pageNo"`
	PageSize        int    `form:"pageSize"`
}

type GetFocusOnByMemberIDQuery added in v0.9.30

type GetFocusOnByMemberIDQuery struct {
	CompanyID string `json:"companyId"`
	MemberID  string `json:"memberId"`
	PageNo    int    `json:"pageNo"`
	PageSize  int    `json:"pageSize"`
}

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 GetPageRangeLogDateQuery struct {
	CompanyID    string `form:"companyId"`
	MemberID     string `form:"memberId"`
	ProjectID    string `form:"projectId"`
	StartLogDate string `form:"startLogDate"`
	EndLogDate   string `form:"endLogDate"`
	PageNo       int    `form:"pageNo"`
	PageSize     int    `form:"pageSize"`
}

type GetPageWorkReportDailyCommentGroupByReportResponse added in v0.11.3

type GetPageWorkReportDailyCommentGroupByReportResponse struct {
	PageNo     int         `json:"pageNo" binding:"required"`
	TotalCount int64       `json:"totalCount" binding:"required"`
	Infos      []GroupInfo `json:"infos" binding:"required"`
	// 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"`
	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 GetPageWorkReportProjectQuery

type GetPageWorkReportProjectQuery struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	MgmtMemberID string `json:"mgmtMemberID"`
	CompanyID    string `json:"companyID"`
	DeptID       string `json:"deptID"`
	DeptName     string `json:"deptName"`
	PageNo       int    `json:"pageNo"`
	PageSize     int    `json:"pageSize"`
}

type GetPageWorkReportProjectRecentQuery

type GetPageWorkReportProjectRecentQuery struct {
	ProjectID   string `json:"projectId"`
	ProjectName string `json:"projectName"`
	MemberID    string `json:"MemberId"`
	CompanyID   string `json:"companyId"`
	UpdateTime  string `json:"updateTime"`
	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 GetRecentProjectQuery struct {
	CompanyID string `json:"companyId"`
	MemberID  string `json:"memberId"`
}

type GetReviewCountRequest added in v0.9.20

type GetReviewCountRequest struct {
	ReviewerID      string `json:"reviewerId"`
	ReportIDs       string `json:"reportId"`
	StartCreateTime string `json:"startCreateTime"`
	EndCreateTime   string `json:"endCreateTime"`
}

type GetReviewCountResponse added in v0.9.16

type GetReviewCountResponse struct {
	TotalCount int64 `json:"totalCount"`
	// contains filtered or unexported fields
}

type GetSingleEvaluateParam added in v0.15.104

type GetSingleEvaluateParam struct {
	WorkReportId     string `form:"workReportId"`
	EvaluatePersonId string `form:"evaluatePersonId"`
}

type GetSingleEvaluateResponse added in v0.15.104

type GetSingleEvaluateResponse struct {
	Data *RecordScore `json:"data,omitempty"`
	// 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 IsFocusOnRequest struct {
	CompanyID       string `json:"companyId"`
	MemberID        string `json:"memberId"`
	FocusOnMemberID string `json:"focusOnMemberId"`
}

type IsFocusOnResponse added in v0.9.30

type IsFocusOnResponse struct {
	IsFocusOn bool
	Info      *WorkReportFocusOn
	// contains filtered or unexported fields
}

type ItemScore added in v0.15.104

type ItemScore struct {
	ItemName string `json:"itemName,omitempty"`
	Score    uint8  `json:"score,omitempty"`
}

type ModifyEvaluateParam added in v0.15.104

type ModifyEvaluateParam struct {
	UserId    string      `json:"userId,omitempty"`
	CompanyId string      `json:"companyId,omitempty"`
	RecordId  string      `json:"recordId,omitempty"`
	Remark    string      `json:"remark,omitempty"`
	Scores    []ItemScore `json:"scores,omitempty"`
}

type PersonCollectInfo added in v0.15.92

type PersonCollectInfo struct {
	MemberName   string  `json:"memberName,omitempty"`
	DeptName     string  `json:"-"`
	ReportCount  int     `json:"reportCount,omitempty"`
	WorkHours    float64 `json:"workHours,omitempty"`
	CommentCount int     `json:"commentCount,omitempty"`
}

type ProjectDailyReportParam added in v0.15.88

type ProjectDailyReportParam struct {
	ProjectIds []string   `json:"projectIds,omitempty"`
	Date       *time.Time `json:"date,omitempty"`
}

type ProjectDailyReportResponse added in v0.15.88

type ProjectDailyReportResponse struct {
	Infos []DailyProjectCollectInfo `json:"infos"`
	// 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 ProjectWorkHoursRequest added in v0.15.48

type ProjectWorkHoursRequest struct {
	CompanyId  string   `json:"companyId"`
	Year       int      `json:"year"`
	Week       int      `json:"week"`
	ProjectIDs []string `json:"projectIds"`
}

type ProjectWorkHoursResponse added in v0.15.48

type ProjectWorkHoursResponse struct {
	Infos map[string]float64
	// contains filtered or unexported fields
}

type QueryEvaluatePageResult added in v0.15.107

type QueryEvaluatePageResult struct {
	Count uint64         `json:"count,omitempty"`
	Infos []EvaluateInfo `json:"infos"`
}

func QueryEvaluate added in v0.15.104

func QueryEvaluate(param *QueryEvaluateParam) (*QueryEvaluatePageResult, error)

type QueryEvaluateParam added in v0.15.104

type QueryEvaluateParam struct {
	CompanyId            string `form:"companyId,omitempty"`
	EvaluatePersonId     string `form:"evaluatePersonId"`
	BeEvaluatePersonName string `form:"beEvaluatePersonName"`
	EvaluatePersonName   string `form:"evaluatePersonName"`
	WorkReportDate       string `form:"workReportDate"`
	PageNo               int    `form:"pageNo"`
	PageSize             int    `form:"pageSize"`
}

type QueryEvaluateResponse added in v0.15.104

type QueryEvaluateResponse struct {
	Data *QueryEvaluatePageResult `json:"data"`
	// contains filtered or unexported fields
}

type RecordScore added in v0.15.104

type RecordScore struct {
	RecordId string      `json:"recordId,omitempty"`
	Scores   []ItemScore `json:"scores,omitempty"`
	Remark   string      `json:"remark,omitempty"`
}

func GetSingleEvaluate added in v0.15.104

func GetSingleEvaluate(param *GetSingleEvaluateParam) (*RecordScore, error)

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 ReviewReportRequest struct {
	ReviewerID   string `json:"reviewerId"`
	ReviewerName string `json:"reviewerName"`
	ReportID     string `json:"reportId"`
}

type Reviewer added in v0.8.13

type Reviewer struct {
	ReviewerID   string `json:"reviewerId"`
	ReviewerName string `json:"reviewerName"`
	CreatedAt    string `json:"createdAt"`
}

type RmCommonRequest added in v0.2.3

type RmCommonRequest struct {
	CompanyId string `json:"companyId"`
	UserId    string `json:"userId"`
	ProjectId string `json:"projectId"`
}

type RmFavRequest added in v0.2.3

type RmFavRequest struct {
	CompanyId string `json:"companyId"`
	UserId    string `json:"userId"`
	ProjectId string `json:"projectId"`
}

type SumDeptAndPersonReportParam added in v0.15.92

type SumDeptAndPersonReportParam struct {
	ProjectId string `form:"projectId"`
	Date      string `form:"date"`
}

type SumDeptAndPersonReportResponse added in v0.15.92

type SumDeptAndPersonReportResponse struct {
	Infos []DepartCollectInfo `json:"infos"`
	// contains filtered or unexported fields
}

type UnFocusOnRequest added in v0.9.30

type UnFocusOnRequest struct {
	CompanyID       string `json:"companyId"`
	MemberID        string `json:"memberId"`
	FocusOnMemberID string `json:"focusOnMemberId"`
}

type UnFocusOnResponse added in v0.9.30

type UnFocusOnResponse struct {
	// contains filtered or unexported fields
}

type UpdatePermissionBatchParam added in v0.15.104

type UpdatePermissionBatchParam struct {
	CompanyId string               `json:"companyId,omitempty"`
	Perms     []EvaluatePermission `json:"perms,omitempty"`
}

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 UpdateWorkReportProjectRecentRequest

type UpdateWorkReportProjectRecentRequest struct {
	ProjectID   string `json:"projectId"`
	ProjectName string `json:"projectName"`
	MemberID    string `json:"MemberId"`
	CompanyID   string `json:"companyId"`
	UpdateTime  string `json:"updateTime"`
}

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 WorkReportDaily added in v0.15.10

type WorkReportDaily struct {
	ID          string     `gorm:"primary_key;type:varchar(32);comment:id"`
	CompanyID   string     `gorm:"not null;type:varchar(64);comment:所属企业id"`
	ProjectID   string     `gorm:"not null;type:varchar(64);comment:所属项目id"`
	ProjectName string     `gorm:"not null;type:varchar(256);comment:所属项目名称"`
	DeptID      string     `gorm:"not null;type:varchar(64);comment:所属部门ID"`
	DeptName    string     `gorm:"not null;type:varchar(128);comment:所属部门名称"`
	MemberID    string     `gorm:"not null;type:varchar(64);comment:所属用户ID"`
	MemberName  string     `gorm:"not null;type:varchar(256);comment:所属用户姓名"`
	Actual      string     `gorm:"comment:实际内容"`
	Priority    uint8      `gorm:"comment:优先级"`
	Progress    string     `gorm:"type:varchar(10);comment:进度"`
	Duration    float64    `gorm:"comment:耗时"`
	OnPlan      uint8      `gorm:"comment:是否计划内"`
	Remark      string     `gorm:"comment:备注"`
	Year        int        `gorm:"comment:所属年"`
	Week        int        `gorm:"comment:所属周"`
	LogDate     *time.Time `gorm:"type:date;comment:日报日期"`
	Stage       uint8      `gorm:"comment:项目阶段"`
	CreatedAt   time.Time  `gorm:"comment:创建时间"`
	UpdatedAt   time.Time  `gorm:"comment:更新时间"`
}

func AllWorkReportDailies added in v0.15.10

func AllWorkReportDailies() ([]WorkReportDaily, 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"`
}

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"`
}

Jump to

Keyboard shortcuts

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