Documentation ¶
Index ¶
- Constants
- Variables
- func AddFocus(userID int, focusID int) string
- func AddPushMessage(userID int, userName string, replyCommentID int, replyContent string, ...) string
- func AddUserCollection(userID int, collectionType string, typeID int) string
- func AddUserCommentInformation(userID int, commentTitle string, commentContent string, commentImage string, ...) string
- func AddUserCommentReply(userID int, commentID int, replyContent string) string
- func CancelFocus(userID int, focusID int) string
- func CancelUserCollect(userID int, collectionType string, typeID int) string
- func CancelUserLike(userID int, commentID int) string
- func CheckFollowEachother(userID int, focusID int) string
- func CheckIsCollection(userID int, typeName string, typeID int) string
- func CheckIsHadUser(username string) (bool, error)
- func CheckQuestionAnswer(username string, answer string) (string, error)
- func DeleteRedisKey(key string)
- func DeleteUserCommentByID(id int) string
- func DeleteUserCommentReply(replyID int) string
- func DoPasswordEncrypt(userName string, noEncryptPassword string) string
- func FindPasswordQuestion(username string) (string, error)
- func GetAllUserCommentInfoByID(user int, commentID int) string
- func GetBottomNewsInformationByID(id int) string
- func GetBottomNewsLiteInformation(start int, count int) string
- func GetChannelFolkInformation() string
- func GetChannelFolkSingleInformation(id int) string
- func GetChannelInformation(divide string) string
- func GetCommentLikeNumber(commentID int) int
- func GetFansInformation(userID int) string
- func GetFansNumber(userID int) int
- func GetFindActivityID() string
- func GetFolkNewsInformation(id int) string
- func GetFolkNewsList(category string, start int, count int) string
- func GetFollowInformation(userID int) string
- func GetFollowNumber(userID int) int
- func GetMainDivideActivityImageUrl() string
- func GetMainPageSlideNewsInformation() string
- func GetPushMessageInfo(userID int) string
- func GetRedisKey(key string) (string, error)
- func GetSearchUserInfo(name string) string
- func GetUserAllInfo(userID int) string
- func GetUserCollection(userID int, collectionType string) string
- func GetUserCommentCount(commentID int, replyType int) int
- func GetUserCommentIdByUser(userID int) string
- func GetUserCommentImageUrl(id int) string
- func GetUserCommentInformaitonByOwn(userID int, start int) string
- func GetUserCommentInformation(userID int, start int) string
- func GetUserCommentInformationBySameLocation(userID int, start int, location string) string
- func GetUserCommentInformationByUser(userID int, start int) string
- func GetUserCommentReply(commentID int, replyType int) string
- func GetUserFocusAndFansViewPermission(userID int) int
- func GetUserImage(userID int) string
- func GetUserIsLike(userID int, commentID int) string
- func GetUserLikeComment(userID int) string
- func GetUserPermission(userID int) int
- func InitDB() *sql.DB
- func IsUserFollow(userID int, fansID int) string
- func PostDataDecrypt(postData string, dataChan chan string)
- func RegistUser(username string, password string, findPasswordQuestion string, ...) error
- func SaveFindImage(imageByte []byte) (bool, string)
- func SearchBottomNewsInformation(searchString string) string
- func SearchChannelForkInfo(searchInfo string) string
- func SearchFolkNewsInformaiton(searhString string) string
- func SearchUserCommentInfo(searchInfo string, userID int) string
- func SelectUserName(id int64) (string, error)
- func SendSinglePushMessageInfo(userID int) string
- func SetRedisKey(key string, result string)
- func SetUserFocusAndFansViewPermission(userID int, permission int) string
- func SetUserLike(userID int, commentID int) string
- func SetUserPermission(userID int, permission int) string
- func Sign_In(userName string, password string) (int, error)
- func StartPushService()
- func UpdatePassword()
- func UpdateUserCommentImage(id int, imgString string) string
- func UpdateUserCommentInformaiton(id int, commentTitle string, comemntContent string, commentImage string) string
- func UpdateUserCommentReply(replyID int, replyContent string) string
- func UpdateUserImage(userID int, imageString string) string
- func UpdateUserPassword(username string, password string) (string, error)
- type ActivityDivideImage
- type BottomNews
- type BottomNewsLite
- type ChannelForkInformationLite
- type ChannelInformaiton
- type CollectionInfo
- type FindActivityData
- type FolkData
- type FolkNews
- type FolkNewsLite
- type FollowInformation
- type MainPageSlideNews
- type PushMessageData
- type PushReplyData
- type ReplyInformation
- type SearchInfo
- type UserCommentData
- type UserInfo
Constants ¶
View Source
const ERROR = "ERROR"
View Source
const SUCCESS = "SUCCESS"
View Source
const TYPE_FIND = "发现"
View Source
const TYPE_FOCUS_HERITAGE = "聚焦非遗"
View Source
const TYPE_FOLK = "民间"
View Source
const TYPE_MAIN = "首页新闻"
Variables ¶
View Source
var DB *sql.DB
View Source
var RedisDB *redis.Client
Functions ¶
func AddPushMessage ¶
func AddUserCollection ¶
func AddUserCommentReply ¶
func CancelFocus ¶
func CancelUserCollect ¶
func CancelUserLike ¶
func CheckFollowEachother ¶
func CheckIsHadUser ¶
func DeleteRedisKey ¶
func DeleteRedisKey(key string)
func DeleteUserCommentByID ¶
func DeleteUserCommentReply ¶
func DoPasswordEncrypt ¶
func FindPasswordQuestion ¶
func GetChannelFolkInformation ¶
func GetChannelFolkInformation() string
func GetChannelInformation ¶
func GetCommentLikeNumber ¶
func GetFansInformation ¶
func GetFansNumber ¶
func GetFindActivityID ¶
func GetFindActivityID() string
func GetFolkNewsInformation ¶
func GetFollowInformation ¶
func GetFollowNumber ¶
func GetMainDivideActivityImageUrl ¶
func GetMainDivideActivityImageUrl() string
func GetMainPageSlideNewsInformation ¶
func GetMainPageSlideNewsInformation() string
func GetPushMessageInfo ¶
func GetRedisKey ¶
func GetSearchUserInfo ¶
func GetUserAllInfo ¶
func GetUserCollection ¶
func GetUserCommentCount ¶
func GetUserCommentIdByUser ¶
func GetUserCommentImageUrl ¶
func GetUserCommentReply ¶
func GetUserImage ¶
func GetUserIsLike ¶
func GetUserLikeComment ¶
func GetUserPermission ¶
func IsUserFollow ¶
func PostDataDecrypt ¶
func RegistUser ¶
func SaveFindImage ¶
func SearchChannelForkInfo ¶
func SearchUserCommentInfo ¶
func SelectUserName ¶
func SetRedisKey ¶
func SetUserLike ¶
func SetUserPermission ¶
func StartPushService ¶
func StartPushService()
func UpdatePassword ¶
func UpdatePassword()
func UpdateUserCommentImage ¶
func UpdateUserCommentReply ¶
func UpdateUserImage ¶
Types ¶
type ActivityDivideImage ¶
type BottomNews ¶
type BottomNewsLite ¶
type ChannelInformaiton ¶
type ChannelInformaiton struct { Id int `json:"id"` Time string `json:"time"` Category string `json:"category"` Location string `json:"location"` Apply_location string `json:"apply_location"` Content string `json:"content"` Number string `json:"number"` Img string `json:"img"` Title string `json:"title"` }
type CollectionInfo ¶
type FindActivityData ¶
type FolkData ¶
type FolkData struct { Id int64 `json:"id"` Time string `json:"time"` Divide string `json:"divide"` Category string `json:"category"` Location string `json:"location"` Apply_location string `json:"apply_location"` Title string `json:"title"` Content string `json:"content"` Number string `json:"number"` Img string `json:"img"` }
type FolkNewsLite ¶
type FollowInformation ¶
type MainPageSlideNews ¶
type PushMessageData ¶
type PushReplyData ¶
type PushReplyData struct { ID int `json:"id"` UserID int `json:"userID"` UserName string `json:"userName"` ReplyCommentID int `json:"replyComemntID"` ReplyContent string `json:"replyContent"` ReplyToUserID int `json:"replyToUserID"` ReplyToUserName string `json:"replyToUserName"` ReplyTime string `json:"replyTime"` IsPush int `json:"isPush"` OriginalReplyContent string `json:"originalReplyContent"` }
type ReplyInformation ¶
type SearchInfo ¶
type UserCommentData ¶
type UserCommentData struct { ID int `json:"id"` CommentTime string `json:"commentTime"` UserName string `json:"userName"` CommentTitle string `json:"commentTitle"` ComemntContent string `json:"commentContent"` UserID int `json:"userID"` IsLike string `json:"isLike"` IsFollow string `json:"isFollow"` IsCollect string `json:"isCollect"` LikeNum int `json:"likeNum"` ReplyNum int `json:"replyNum"` ImageURL string `json:"imageUrl"` Location string `json:"location"` }
Click to show internal directories.
Click to hide internal directories.