Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
Index ¶
- Constants
- Variables
- type Host
- type HostConnectionRecord
- type HostConnectionRecordPure
- type HostPure
- type Meta
- type Order
- type Profile
- type ProfilePublic
- type ProfilePure
- type ProfileWithToken
- type Query
- type Response
- type Sort
- type Team
- type TeamMember
- type TeamMemberInvite
- type TeamMemberInvitePure
- type TeamPure
- type TeamStat
- type TeamWithMember
Constants ¶
View Source
const ( StatusSuccess = 1 StatusFail = 0 )
Variables ¶
View Source
var ( DefaultLimit = 10 // 默认只获取 10 条数据 DefaultPage = 1 // 默认第 1 页 DefaultSort = "-created_at" // 默认按照创建时间排序 MaxLimit = 100 // 最大的查询数量,100 条 防止查询数据过大拖慢服务端性能 OrderAsc Order = "ASC" // 排序方式,正序 OrderDesc Order = "DESC" // 排序方式,倒序 )
Functions ¶
This section is empty.
Types ¶
type HostConnectionRecord ¶
type HostConnectionRecord struct { HostConnectionRecordPure CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type HostPure ¶
type HostPure struct { Id string `json:"id"` Name string `json:"name"` OwnerID string `json:"owner_id"` OwnerType db.HostOwnerType `json:"owner_type"` Host string `json:"host"` Port uint `json:"port"` Username string `json:"username"` ConnectType db.HostConnectType `json:"connect_type"` Remark *string `json:"remark"` }
服务器的相关信息
type Profile ¶
type Profile struct { ProfilePure CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type ProfilePublic ¶
type ProfilePublic struct { Id string `json:"id"` Username string `json:"username"` Nickname *string `json:"nickname"` Avatar string `json:"avatar"` }
公开的用户资料,任何人都可以查阅
type ProfilePure ¶
type ProfilePure struct { Id string `json:"id"` Username string `json:"username"` Nickname *string `json:"nickname"` //Email *string `json:"email"` //Phone *string `json:"phone"` //Status int32 `json:"status"` Gender int `json:"gender"` Avatar string `json:"avatar"` }
用户自己的资料
type ProfileWithToken ¶
type Query ¶
type Response ¶
type TeamMember ¶
type TeamMember struct { ProfilePublic Role db.TeamRole `json:"role"` // 用户在团队的角色 CreatedAt string `json:"created_at"` // 用户加入团队的时间 }
团队成员信息
type TeamMemberInvite ¶
type TeamMemberInvite struct { TeamMemberInvitePure Team TeamPure `json:"team"` // 邀请的团队 User ProfilePublic `json:"user"` // 被邀请的用户 Invitor ProfilePublic `json:"invitor"` // 邀请人 CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type TeamMemberInvitePure ¶
type TeamPure ¶
type TeamPure struct { Id string `json:"id"` Name string `json:"name"` OwnerID string `json:"owner_id"` Owner ProfilePublic `json:"owner"` Remark *string `json:"remark"` }
团队信息相关
type TeamWithMember ¶
Click to show internal directories.
Click to hide internal directories.