Documentation
¶
Index ¶
- type Code
- type CodeDTO
- type Dau
- type Favorites
- type Friends
- type GroupMembers
- type GroupMessages
- func (g *GroupMessages) Add() string
- func (g *GroupMessages) DeleteGroupMessages()
- func (g *GroupMessages) GetMessage(time int) []*GroupMessages
- func (g *GroupMessages) GetPastWeekData(arr []string) []int
- func (g *GroupMessages) GetTodayGroupMessageNum() int
- func (g *GroupMessages) GetYesterdayGroupMessageNum() int
- type Groups
- type Likes
- type Messages
- type Posts
- type PostsDTO
- func (p *PostsDTO) Add()
- func (p *PostsDTO) AddView()
- func (p *PostsDTO) Delete()
- func (p *PostsDTO) GetById() *Posts
- func (p *PostsDTO) GetFavoriteAndPublicIds(ids []string) []string
- func (p *PostsDTO) GetListTotalCount() int
- func (p *PostsDTO) GetMyListTotalCount() int
- func (p *PostsDTO) IsExistAndValid() bool
- func (p *PostsDTO) IsExistAndValid2() bool
- func (p *PostsDTO) List(offset int) []*Posts
- func (p *PostsDTO) ListByIds(ids []string) []*Posts
- func (p *PostsDTO) MyList(offset int) []*Posts
- func (p *PostsDTO) ToPrivate()
- func (p *PostsDTO) ToPublic()
- func (p *PostsDTO) Update()
- type Requests
- type SongFavorites
- type Songs
- type TodoAddDTO
- type TodoEditDTO
- type TodoIdDTO
- type TodoList
- type TodoListDTO
- type User
- type UserAvatarDTO
- type UserIdDTO
- type UserLoginByCodeDTO
- type UserLoginByPasswordDTO
- type UserModifyDTO
- type UserRegisterDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeDTO ¶
func (*CodeDTO) AddRegisterCode ¶
func (c *CodeDTO) AddRegisterCode()
func (*CodeDTO) AddVerificationCode ¶
func (c *CodeDTO) AddVerificationCode()
func (*CodeDTO) IsTooQuickRegister ¶
func (*CodeDTO) IsTooQuickVerification ¶
func (*CodeDTO) IsValidRegisterCode ¶
func (*CodeDTO) IsValidVerificationCode ¶
type Dau ¶
type Dau struct { Id string `json:"id"` UserId string `json:"userId"` UserIp string `json:"userIp"` CreatedAt string `json:"createdAt"` }
func (*Dau) GetPastWeekData ¶
func (*Dau) GetTodayDauNum ¶
func (*Dau) GetYesterdayDauNum ¶
type Favorites ¶
type Favorites struct { Id string `json:"id"` UserId string `json:"userId"` PostId string `json:"postId"` CreatedAt string `json:"createdAt"` }
func (*Favorites) GetPostCount ¶
func (*Favorites) GetUserCount ¶
func (*Favorites) IsFavorite ¶
type Friends ¶
type Friends struct { Id string `json:"id"` SelfId string `json:"selfId"` FriendId string `json:"friendId"` CreatedAt string `json:"createdAt"` }
func (*Friends) DeleteFriend ¶
func (f *Friends) DeleteFriend()
func (*Friends) FriendList ¶
type GroupMembers ¶
type GroupMembers struct { Id string `json:"id"` GroupId string `json:"groupId"` UserId string `json:"userId"` Status string `json:"status"` }
func (*GroupMembers) Add ¶
func (g *GroupMembers) Add()
func (*GroupMembers) BelongGroupList ¶
func (g *GroupMembers) BelongGroupList() []*GroupMembers
func (*GroupMembers) BelongUserList ¶
func (g *GroupMembers) BelongUserList() []*GroupMembers
func (*GroupMembers) DeleteGroupMember ¶
func (g *GroupMembers) DeleteGroupMember()
func (*GroupMembers) DeleteGroupMembers ¶
func (g *GroupMembers) DeleteGroupMembers()
func (*GroupMembers) IsInGroup ¶
func (g *GroupMembers) IsInGroup() bool
type GroupMessages ¶
type GroupMessages struct { Id string `json:"id"` SenderId string `json:"senderId"` GroupId string `json:"groupId"` Message string `json:"message"` CreatedAt string `json:"createdAt"` }
func (*GroupMessages) Add ¶
func (g *GroupMessages) Add() string
func (*GroupMessages) DeleteGroupMessages ¶
func (g *GroupMessages) DeleteGroupMessages()
func (*GroupMessages) GetMessage ¶
func (g *GroupMessages) GetMessage(time int) []*GroupMessages
func (*GroupMessages) GetPastWeekData ¶
func (g *GroupMessages) GetPastWeekData(arr []string) []int
func (*GroupMessages) GetTodayGroupMessageNum ¶
func (g *GroupMessages) GetTodayGroupMessageNum() int
func (*GroupMessages) GetYesterdayGroupMessageNum ¶
func (g *GroupMessages) GetYesterdayGroupMessageNum() int
type Groups ¶
type Groups struct { Id string `json:"id"` Name string `json:"name"` Avatar string `json:"avatar"` CreatedAt string `json:"createdAt"` UpdatedAt string `json:"updatedAt"` }
func (*Groups) ModifyAvatar ¶
func (g *Groups) ModifyAvatar()
func (*Groups) ModifyGroupName ¶
func (g *Groups) ModifyGroupName()
type Likes ¶
type Messages ¶
type Messages struct { Id string `json:"id"` SenderId string `json:"senderId"` ReceiverId string `json:"receiverId"` Message string `json:"message"` CreatedAt string `json:"createdAt"` }
func (*Messages) DeleteFriendMessage ¶
func (m *Messages) DeleteFriendMessage()
func (*Messages) GetMessage ¶
func (*Messages) GetPastWeekData ¶
func (*Messages) GetTodayMessageNum ¶
func (*Messages) GetYesterdayMessageNum ¶
type Posts ¶
type Posts struct { Id string `json:"id"` UserId string `json:"userId"` Title string `json:"title"` Content string `json:"content"` Category string `json:"category"` ViewCount string `json:"viewCount"` IsPublic string `json:"isPublic"` PublishedAt string `json:"publishedAt"` CreatedAt string `json:"createdAt"` UpdatedAt string `json:"updatedAt"` }
type PostsDTO ¶
type PostsDTO struct { Id string `json:"id"` UserId string `json:"userId"` Title string `json:"title"` Content string `json:"content"` Category string `json:"category"` }
func (*PostsDTO) GetFavoriteAndPublicIds ¶
func (*PostsDTO) GetListTotalCount ¶
func (*PostsDTO) GetMyListTotalCount ¶
func (*PostsDTO) IsExistAndValid ¶
func (*PostsDTO) IsExistAndValid2 ¶
type Requests ¶
type Requests struct { Id string `json:"id"` UserId string `json:"userId"` GroupId string `json:"groupId"` ReceiverId string `json:"receiverId"` Remark string `json:"remark"` Type string `json:"type"` Finish string `json:"finish"` Result string `json:"result"` CreatedAt string `json:"createdAt"` }
func (*Requests) AddGroupRequest ¶
func (r *Requests) AddGroupRequest()
func (*Requests) AddUserRequest ¶
func (r *Requests) AddUserRequest()
func (*Requests) HandleRequest ¶
func (r *Requests) HandleRequest()
func (*Requests) IsGroupRequestExist ¶
func (*Requests) IsUserRequestExist ¶
type SongFavorites ¶
type SongFavorites struct { Id string `json:"id"` UserId string `json:"user_id"` SongId string `json:"song_id"` }
func (*SongFavorites) Add ¶
func (sf *SongFavorites) Add()
func (*SongFavorites) Delete ¶
func (sf *SongFavorites) Delete()
func (*SongFavorites) List ¶
func (sf *SongFavorites) List() []string
type Songs ¶
type Songs struct { Id string `json:"id"` Title string `json:"title"` Artist string `json:"artist"` Time string `json:"time"` }
func (*Songs) ListByFavorite ¶
type TodoAddDTO ¶
type TodoAddDTO struct { UserID string `json:"userId"` Title string `json:"title"` Description string `json:"description"` Priority string `json:"priority"` Status string `json:"status"` DueDate string `json:"dueDate"` }
func (*TodoAddDTO) Add ¶
func (t *TodoAddDTO) Add()
type TodoEditDTO ¶
type TodoEditDTO struct { Id string `json:"id"` UserID string `json:"userId"` Title string `json:"title"` Description string `json:"description"` Priority string `json:"priority"` Status string `json:"status"` DueDate string `json:"dueDate"` }
func (*TodoEditDTO) Edit ¶
func (t *TodoEditDTO) Edit()
func (*TodoEditDTO) IsExistAndValid ¶
func (t *TodoEditDTO) IsExistAndValid() bool
type TodoList ¶
type TodoList struct { Id string `json:"id"` UserId string `json:"userId"` Title string `json:"title"` Description string `json:"description"` Priority string `json:"priority"` Status string `json:"status"` DueDate string `json:"dueDate"` CreatedAt string `json:"createdAt"` UpdatedAt string `json:"updatedAt"` }
func (*TodoList) GetPastWeekData ¶
func (*TodoList) GetTodayTodolistNum ¶
func (*TodoList) GetYesterdayTodolistNum ¶
type TodoListDTO ¶
func (*TodoListDTO) List ¶
func (t *TodoListDTO) List() []*TodoList
type User ¶
type User struct { Id string `json:"id"` Username string `json:"username"` Password string `json:"password"` Email string `json:"email"` Avatar string `json:"avatar"` Path string `json:"path"` EmailUpdateAt string `json:"emailUpdateAt"` CreatedAt string `json:"createdAt"` UpdatedAt string `json:"updatedAt"` }
type UserAvatarDTO ¶
func (*UserAvatarDTO) GetUser ¶
func (u *UserAvatarDTO) GetUser() *User
type UserLoginByCodeDTO ¶
func (*UserLoginByCodeDTO) GetUser ¶
func (u *UserLoginByCodeDTO) GetUser() *User
func (*UserLoginByCodeDTO) IsEmailExist ¶
func (u *UserLoginByCodeDTO) IsEmailExist() bool
type UserLoginByPasswordDTO ¶
type UserLoginByPasswordDTO struct { Email string `json:"email"` Password string `json:"password"` }
func (*UserLoginByPasswordDTO) GetUser ¶
func (u *UserLoginByPasswordDTO) GetUser() *User
func (*UserLoginByPasswordDTO) IsCorrectPassword ¶
func (u *UserLoginByPasswordDTO) IsCorrectPassword() bool
func (*UserLoginByPasswordDTO) IsEmailExist ¶
func (u *UserLoginByPasswordDTO) IsEmailExist() bool
type UserModifyDTO ¶
type UserModifyDTO struct { Id string `json:"id"` Email string `json:"email"` EmailUpdateAt string `json:"emailUpdateAt"` Username string `json:"username"` Password string `json:"password"` Avatar string `json:"avatar"` Path string `json:"path"` }
func (*UserModifyDTO) IsEmailExist ¶
func (u *UserModifyDTO) IsEmailExist() bool
func (*UserModifyDTO) IsPathExist ¶
func (u *UserModifyDTO) IsPathExist() bool
func (*UserModifyDTO) ModifyAvatar ¶
func (u *UserModifyDTO) ModifyAvatar()
func (*UserModifyDTO) ModifyEmail ¶
func (u *UserModifyDTO) ModifyEmail()
func (*UserModifyDTO) ModifyPassword ¶
func (u *UserModifyDTO) ModifyPassword()
func (*UserModifyDTO) ModifyPath ¶
func (u *UserModifyDTO) ModifyPath()
func (*UserModifyDTO) ModifyUsername ¶
func (u *UserModifyDTO) ModifyUsername()
type UserRegisterDTO ¶
type UserRegisterDTO struct { Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` Code string `json:"code"` Path string `json:"path"` }
func (*UserRegisterDTO) Add ¶
func (u *UserRegisterDTO) Add() string
func (*UserRegisterDTO) GetUser ¶
func (u *UserRegisterDTO) GetUser() *User
func (*UserRegisterDTO) IsEmailExist ¶
func (u *UserRegisterDTO) IsEmailExist() bool
Click to show internal directories.
Click to hide internal directories.