Documentation
¶
Index ¶
- func AddBoard(name, path string) string
- func AddMessage(sender, sendee int, content string) string
- func AddPost(content, path string, uid int) string
- func AddResponse(uid, pid int, content string) string
- func AddUser(username, password, email, birthdate, gender string) string
- func CheckEmail(email string) string
- func CheckPass(username, password string) string
- func CheckUsername(username string) string
- func GetBoards() string
- func GetMesList(userid int) string
- func GetMessage(sender, sendee int) string
- func GetPosts(path string) string
- func GetResponse(pid int) string
- func GetUid(name string) int
- func GetUserDetailInfo(id int) string
- func GetUserInfo(id int) string
- func GetUserName(id int) string
- func IsExistPid(pid int) int
- type AllMessages
- type AllPeople
- type AllPosts
- type Board
- type Boards
- type MessageInfo
- type OnePeople
- type Posts
- type Response
- type Responses
- type UserDetailInfo
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBoard ¶
B100 : success B101 : Cannot connect to DB B102 : sql statement error B103 : Unable to get DB handle B104 : sql exe error
func AddMessage ¶
M100 : success M101 : Cannot connect to DB M102 : sql statement error M103 : Unable to get DB handler M104 : sql exe error M105 : user invalid
func AddPost ¶
B100 : success B101 : Cannot connect to DB B102 : sql statement error B103 : Unable to get DB handler B104 : sql exe error B105 : user invalid
func AddResponse ¶
R100 : success R101 : Cannot connect to DB R102 : sql statement error R103 : Unable to get DB handler R104 : sql exe error R105 : user invalid R106 : No such pid
func AddUser ¶
AddUser add user Return codes: U100 : Success! U101 : Cannot connect to the database. U102 : SQL statement error U103 : Unable to get DB handle U104 : Execution error
func CheckEmail ¶
Check Functions have the following return codes : C100-1 : There is a same email C100-0 : There is no same email C101 : Cannot connect to the database. C102 : SQL statement error C103 : SQL execution error
func CheckPass ¶
CheckPass have the following return codes : C100-1 : OK C100-0 : Wrong password C101 : Cannot connect to the database. C102 : SQL statement error C103 : SQL execution error C104 : No user
func CheckUsername ¶
Check Functions have the following return codes : C100-1 : There is a same username C100-0 : There is no same username C101 : Cannot connect to the database. C102 : SQL statement error C103 : SQL execution error
func GetBoards ¶
func GetBoards() string
G101 : Cannot connect to DB G102 : SQL statement error G103 : SQL exe error G104 : empty G105 : JSON error
func GetMesList ¶
func GetMessage ¶
G101 : Cannot connect to DB G102 : SQL statement error G103 : SQL exe error G104 : empty G105 : JSON error G106 : User error
func GetPosts ¶
G101 : Cannot connect to DB G102 : SQL statement error G103 : SQL exe error G104 : empty G105 : JSON error
func GetResponse ¶
func GetUserDetailInfo ¶
G101 : Cannot connect to DB G102 : SQL statement error G103 : SQL exe error G104 : empty G105 : JSON error
func GetUserInfo ¶
G101 : Cannot connect to DB G102 : SQL statement error G103 : SQL exe error G104 : empty G105 : JSON error
func GetUserName ¶
func IsExistPid ¶
Types ¶
type AllMessages ¶
type AllMessages struct {
Messages []MessageInfo `json:"messages"`
}