Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Status_name = map[int32]string{ 0: "BACKLOG", 1: "TODO", 2: "INPROGRESS", 3: "DONE", } Status_value = map[string]int32{ "BACKLOG": 0, "TODO": 1, "INPROGRESS": 2, "DONE": 3, } )
Enum value maps for Status.
View Source
var File_internal_pkg_pb_task_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Goal ¶ added in v1.2.8
type Goal struct { // ID describe the unique identify code of objective ID string `json:"id" db:"id"` // Title describe the title of objective Title string `json:"title" db:"title"` // KeyResults describe key results of objective KeyResults []*Result `json:"key_results" db:"key_results"` // StartAt describe the objective start timex milliseconds StartAt int64 `json:"start_at" db:"start_at"` // EndAt describe the objective end timex milliseconds EndAt int64 `json:"end_at" db:"end_at"` // CreateAt describe the objective create milliseconds CreateAt int64 `json:"create_at" db:"create_at"` }
Goal declare an objective basic information
type Profile ¶ added in v1.2.10
type Profile struct { // ID describe the unique identify code of user ID string `json:"-" db:"sn"` // AccessToken describe this user's accessToken AccessToken string `json:"access_token" db:"access_token"` // Password describe user's password to login system Password string `json:"-" db:"password"` // Email describe user's email to login system Email string `json:"email" db:"email"` // SignupAt describe user signup platform milliseconds SignupAt int64 `json:"-" db:"signup_at"` }
Profile declare a user basic information
type Result ¶ added in v1.2.8
type Result struct { // ID describe the unique identify code of key result ID string `json:"id" db:"id"` // GoalID describe the parent goal's id GoalID string `json:"goal_id" db:"goal_id"` // Title describe the title of key result Title string `json:"title" db:"title"` // Target describe the target of key result Target int `json:"target" db:"target"` // Actual describe the actual of key result Actual int `json:"actual" db:"actual"` // Progress describe the progress of key result Progress int `json:"-"` // CreateAt describe the key result create milliseconds CreateAt int64 `json:"create_at" db:"create_at"` }
Result declare a key result basic information
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type Task ¶
type Task struct { // ID describe the unique identify code of task ID string `json:"id" db:"id"` // ResultID describe the parent key result's id ResultID string `json:"result_id" db:"result_id"` // Title describe the title of task Title string `json:"title" db:"title"` // Status describe the status of task Status Status `json:"status" db:"status"` // Completed describe the completed of task Completed bool `json:"completed" db:"completed"` // CreateAt describe the task create milliseconds CreateAt int64 `json:"create_at" db:"create_at"` }
Task declare a task basic information
Click to show internal directories.
Click to hide internal directories.