Documentation ¶
Index ¶
Constants ¶
View Source
const ( DealStateUnderway = "underway" DealStateRecConfirm = "recConfirm" DealStatePubConfirm = "pubConfirm" )
View Source
const ( ReviewStatePassed = "passed" ReviewStateFailed = "failed" ReviewStateUnderway = "underway" )
View Source
const ( TaskStateNonReleased = "non-released" TaskStateReleased = "released" TaskStateClosed = "closed" TaskKindQuestionnaire = "questionnaire" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Id string `json:"id" xorm:"<-"` TaskId string `json:"taskId" xorm:"taskId"` UserId string `json:"userId" xorm:"userId"` Timestamp time.Time `json:"timestamp" xorm:"timestamp"` Content string `json:"content" xorm:"content"` Stars int `json:"stars" xorm:"stars"` Stargazers []string `json:"stargazers" xorm:"stargazers"` }
type Deal ¶
type Deal struct { Id string `json:"id" xorm:"<-"` TaskId string `json:"taskId" xorm:"taskId"` Publisher string `json:"publisher" xorm:"publisher"` Recipient string `json:"recipient" xorm:"recipient"` Since time.Time `json:"since" xorm:"since"` Until time.Time `json:"until" xorm:"until"` Reward float64 `json:"reward" xorm:"reward"` State string `json:"state" xorm:"state"` }
type Enterprise ¶
Admin 管理员
type Qtnr ¶
type Qtnr struct { Task Qtnr *Questionnaire `json:"qtnr"` }
type Questionnaire ¶
type Questionnaire struct { TaskId string `json:"taskId" xorm:"taskId"` Query []query `json:"query" xorm:"query"` SingleChoice []singleChoice `json:"singleChoice" xorm:"singleChoice"` MutipleChoice []mutipleChoice `json:"mutipleChoice" xorm:"mutipleChoice"` }
type Task ¶
type Task struct { Id string `json:"id" xorm:"<-"` Kind string `json:"kind"` Title string `json:"title"` Publisher string `json:"publisher"` // Recipient string `json:"recipient"` Restrain string `json:"restrain"` Pubdate time.Time `json:"pubdate"` Cutoff time.Time `json:"cutoff"` // Enddate time.Time `json:"enddate"` Reward float64 `json:"reward"` // RecipientFinish bool `json:"recipientFinish" xorm:"recipientFinish"` // ConfirmFinish bool `json:"confirmFinish" xorm:"confirmFinish"` State string `json:"state"` }
type User ¶
type User struct { Id string `json:"id"` SId string `json:"sId" xorm:"sId"` Name string `json:"name"` Introduction string `json:"introduction"` Balance float64 `json:"balance"` Icon string `json:"icon"` Phone string `json:"phone"` CreditScore int `json:"creditScore" xorm:"creditScore"` Email string `json:"email"` CertifiedPic string `json:"certifiedPic" xorm:"certifiedPic"` CertificationStatus int `json:"certificationStatus" xorm:"certificationStatus"` }
type Wrapper ¶
type Wrapper struct { Kind string `json:"kind"` Raw json.RawMessage `json:"raw"` }
Click to show internal directories.
Click to hide internal directories.