service

package
v0.0.0-...-4915e5e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AUTH_LOGIN = "/auth/login"
	ITEMS_GQL  = "/team/%s/items/graphql"
)

Functions

func FetchManhourByUUIDAndDepartmentUUID

func FetchManhourByUUIDAndDepartmentUUID(url string, auth AuthInfo, departmentUUID string, userUUIDS []string) (userUUIDToManhoutMap map[string]*ManhourInfo, err error)

func FetchNeedToRemindUserlist

func FetchNeedToRemindUserlist(auth AuthInfo) (list map[string][]*ManhourInfo, err error)

Types

type ActualHoursSeriesInfo

type ActualHoursSeriesInfo struct {
	Times  []string  `json:"times"`
	Values []float64 `json:"values"`
}

type AuthInfo

type AuthInfo struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	UserId   string `json:"uuid"`
	Token    string `json:"token,omitempty"`
}

func Login

func Login(url, username, password string) (user AuthInfo, err error)

Login for token /*

type ManhourInfo

type ManhourInfo struct {
	ActualHours       int64                 `json:"actualHours"`
	User              UserInfo              `json:"columnField"`
	ActualHoursSeries ActualHoursSeriesInfo `json:"actualHoursSeries"`
}

type UserInfo

type UserInfo struct {
	UUID       string `json:"uuid"`
	UserName   string `json:"name"`
	WechatUUID string `json:"wechat_uuid"`
	Reminded   bool
}

Jump to

Keyboard shortcuts

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