Documentation
¶
Index ¶
- Variables
- func GetAllColData(collectionName string) (*[]interface{}, error)
- func RegisterThreadOfScore(holeString string, teamScore *PostTeamScore) error
- func RegisterThreadOfTotal() error
- func SetAllFieldCol()
- func SetAllPlayerCol()
- func SetAllTeamCol()
- func SetAllThreadCol()
- func SetAllUserCol()
- func SetFieldCol(hole int)
- func SetPlayerCol(userIds []string)
- func SetTeamCol(teamName string)
- func SetThreadCol(threadId string)
- func SetUserCol(userIds []string)
- func UpdateMongoData(collection string, findQuery bson.M, updateQuery bson.M) error
- func UpsertNewTimeLine(thread *Thread) error
- type EntireScore
- type FieldCol
- type FinalRanking
- type Hole
- type Index
- type LeadersBoard
- type LoginStatus
- type PlayerCol
- type PostApplyScore
- type PostDefinedTeam
- type PostLogin
- type PostTeamScore
- type Reaction
- type RequestTakePictureStatus
- type ScoreEntrySheet
- type ScoreViewSheet
- type Status
- func PostApplyScoreData(teamName string, ApplyScore *PostApplyScore) (*Status, error)
- func PostScoreViewSheetPageData(teamName string, definedTeam *PostDefinedTeam) (*Status, error)
- func RegisterFieldColData(date string, fieldCols []FieldCol) (*Status, error)
- func RegisterTeamColData(date string, teamCols []TeamCol) (*Status, error)
- func RegisterUserColData(userCols []UserCol) (*Status, error)
- type Sum
- type TeamCol
- type Thread
- type ThreadCol
- type ThreadDate
- type TimeLine
- type TimeLineWs
- type UserCol
- type UserScore
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ThreadChan chan *Thread ErrChan chan string FinChan chan bool )
Functions ¶
func GetAllColData ¶
for debug return all collection data
this method is not userd web app becouse return is interface(map) and map is not defined order
func RegisterThreadOfScore ¶
func RegisterThreadOfScore(holeString string, teamScore *PostTeamScore) error
func SetAllFieldCol ¶
func SetAllFieldCol()
func SetAllPlayerCol ¶
func SetAllPlayerCol()
func SetAllTeamCol ¶
func SetAllTeamCol()
func SetAllThreadCol ¶
func SetAllThreadCol()
func SetAllUserCol ¶
func SetAllUserCol()
func SetFieldCol ¶
func SetFieldCol(hole int)
func SetPlayerCol ¶
func SetPlayerCol(userIds []string)
func SetTeamCol ¶
func SetTeamCol(teamName string)
func SetThreadCol ¶
func SetThreadCol(threadId string)
func SetUserCol ¶
func SetUserCol(userIds []string)
func UpdateMongoData ¶
func UpsertNewTimeLine ¶
Types ¶
type EntireScore ¶
type EntireScore struct {
Rows [][]string `json:"rows"`
}
func GetEntireScorePageData ¶
func GetEntireScorePageData() (*EntireScore, error)
type FinalRanking ¶
type Index ¶
func GetIndexPageData ¶
type LeadersBoard ¶
type LeadersBoard struct {
Ranking []UserScore `json:"ranking"`
}
func GetLeadersBoardPageData ¶
func GetLeadersBoardPageData() (*LeadersBoard, error)
type LoginStatus ¶
type LoginStatus struct { Status string `json:"status"` UserId string `json:"userId"` UserName string `json:"userName"` Team string `json:"team"` Admin bool `json:"admin"` }
reponse status
func PostLoginPageData ¶
func PostLoginPageData(loginInfo *PostLogin) (*LoginStatus, error)
type PlayerCol ¶
type PlayerCol struct { Id bson.ObjectId `json:"id" bson:"_id,omitempty"` UserId string `json:"userId"` Apply int `json:"apply"` PositivePhotoUrl string `json:"positivePhotoUrl"` NegativePhotoUrl string `json:"negativePhotoUrl"` // Editable bool `json:"editable"` Score []bson.M `json:"score"` Date string `json:"date"` Admin bool `json:"admin"` }
type PostApplyScore ¶
type PostDefinedTeam ¶
type PostDefinedTeam struct {
Team string `json:"team"`
}
type PostTeamScore ¶
type RequestTakePictureStatus ¶
type RequestTakePictureStatus struct { Status string `json:"status"` UserId string `json:"userId"` TeamUserIds []string `json:"teamUserIds"` Name string `json:"name"` Positive bool `json:"positive"` ThreadMsg string `json:"threadMsg"` ThreadId string `json:"threadId"` PhotoUrl string `json:"photoUrl"` }
func PostScoreEntrySheetPageData ¶
func PostScoreEntrySheetPageData(teamName string, holeString string, teamScore *PostTeamScore) (*RequestTakePictureStatus, error)
func RegisterThreadImg ¶
func RegisterThreadImg(r *RequestTakePictureStatus) (*RequestTakePictureStatus, error)
func RequestTakePicture ¶
func RequestTakePicture(userIds []string) (*RequestTakePictureStatus, error)
type ScoreEntrySheet ¶
type ScoreEntrySheet struct { Team string `json:"team"` Hole int `json:"hole"` Member []string `json:"member"` UserIds []string `json:"userIds"` Par int `json:"par"` Yard int `json:"yard"` Total []int `json:"total"` Putt []int `json:"putt"` Excnt int `json:"excnt"` }
func GetScoreEntrySheetPageData ¶
func GetScoreEntrySheetPageData(teamName string, holeString string) (*ScoreEntrySheet, error)
type ScoreViewSheet ¶
type ScoreViewSheet struct { Team string `json:"team"` Member []string `json:"member"` UserIds []string `json:"userIds"` Apply []int `json:"apply"` Hole []Hole `json:"hole"` OutSum Sum `json:"outSum"` InSum Sum `json:"inSum"` Sum Sum `json:"sum"` Defined bool `json:"defined"` }
func GetScoreViewSheetPageData ¶
func GetScoreViewSheetPageData(teamName string) (*ScoreViewSheet, error)
type Status ¶
type Status struct {
Status string `json:"status"`
}
func PostApplyScoreData ¶
func PostApplyScoreData(teamName string, ApplyScore *PostApplyScore) (*Status, error)
func PostScoreViewSheetPageData ¶
func PostScoreViewSheetPageData(teamName string, definedTeam *PostDefinedTeam) (*Status, error)
func RegisterFieldColData ¶
func RegisterTeamColData ¶
func RegisterUserColData ¶
type Thread ¶
type Thread struct { ThreadId string `json:"threadId"` UserId string `json:"userId"` UserName string `json:"userName"` Msg string `json:"msg"` ImgUrl string `json:"imgUrl"` ColorCode string `json:"colorCode"` Positive bool `json:"positive"` Reactions []Reaction `json:"reactions"` CreatedAt string `json:"createdAt"` }
func UpdateExistingTimeLine ¶
type ThreadCol ¶
type ThreadCol struct { Id bson.ObjectId `json:"id" bson:"_id,omitempty"` UserId string `json:"userId"` UserName string `json:"userName"` ThreadId string `json:"threadId"` Msg string `json:"msg"` ImgUrl string `json:"imgUrl"` ColorCode string `json:"colorCode"` Positive bool `json:"positive"` Reactions []bson.M `json:"reactions"` CreatedAt string `json:"createdAt"` Date string `json:"Date"` }
type ThreadDate ¶
type TimeLine ¶
type TimeLine struct {
Threads []Thread `json:"threads"`
}
func GetTimeLinePageData ¶
Click to show internal directories.
Click to hide internal directories.