|
|
|
@ -18,25 +18,33 @@ const (
|
|
|
|
|
_GetCommentById_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommentContentsByIds_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommentCount_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommentReplayById_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommentThumbsMap_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommentReplyById_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommentThumbs_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetComments_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommmentRepliesById_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommmentRepliesByIds_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetUsersByIds_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_CreateComment_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_CreateCommentContent_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_CreateCommentReply_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_CreateThumbsUpComment_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_DeleteComment_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_DeleteCommentReply_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_DeleteCommentThumbs_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_DeleteReplyThumbs_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetCommentReplyThumb_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetTweetCommentThumb_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_ThumbsDownComment_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_ThumbsDownReply_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_ThumbsUpComment_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_ThumbsUpReply_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UpdateCommentThumbsCount_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UpdateThumbsUpComment_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_AddFriend_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_DelFriend_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetContacts_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_IsFriend_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetUserFriend_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_RejectFriend_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_RequestingFriend_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_TotalContactsById_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FollowIndexA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FollowIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FriendIndexA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
@ -49,6 +57,7 @@ const (
|
|
|
|
|
_GetMessages_Message = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetUnreadCount_Message = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_ReadMessage_Message = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_CreatePhoneCaptcha_Security = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_GetLatestPhoneCaptcha_Security = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_SendPhoneCaptcha_Security = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UsePhoneCaptcha_Security = `SELECT * FROM @user WHERE username=?`
|
|
|
|
@ -128,26 +137,33 @@ type AuthorizationManage struct {
|
|
|
|
|
|
|
|
|
|
type Comment struct {
|
|
|
|
|
yesql.Namespace `yesql:"comment"`
|
|
|
|
|
GetCommentContentsByIds string `yesql:"get_comment_contents_by_ids"`
|
|
|
|
|
GetCommmentRepliesByIds string `yesql:"get_commment_replies_by_ids"`
|
|
|
|
|
GetUsersByIds string `yesql:"get_users_by_ids"`
|
|
|
|
|
GetCommentById *sqlx.Stmt `yesql:"get_comment_by_id"`
|
|
|
|
|
GetCommentContentsByIds *sqlx.Stmt `yesql:"get_comment_contents_by_ids"`
|
|
|
|
|
GetCommentCount *sqlx.Stmt `yesql:"get_comment_count"`
|
|
|
|
|
GetCommentReplayById *sqlx.Stmt `yesql:"get_comment_replay_by_id"`
|
|
|
|
|
GetCommentThumbsMap *sqlx.Stmt `yesql:"get_comment_thumbs_map"`
|
|
|
|
|
GetComments *sqlx.Stmt `yesql:"get_comments"`
|
|
|
|
|
GetCommmentRepliesById *sqlx.Stmt `yesql:"get_commment_replies_by_id"`
|
|
|
|
|
GetCommentReplyById *sqlx.Stmt `yesql:"get_comment_reply_by_id"`
|
|
|
|
|
GetCommentThumbs *sqlx.Stmt `yesql:"get_comment_thumbs"`
|
|
|
|
|
GetCommentCount *sqlx.NamedStmt `yesql:"get_comment_count"`
|
|
|
|
|
GetComments *sqlx.NamedStmt `yesql:"get_comments"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CommentManage struct {
|
|
|
|
|
yesql.Namespace `yesql:"comment_manage"`
|
|
|
|
|
CreateComment *sqlx.Stmt `yesql:"create_comment"`
|
|
|
|
|
CreateCommentContent *sqlx.Stmt `yesql:"create_comment_content"`
|
|
|
|
|
CreateCommentReply *sqlx.Stmt `yesql:"create_comment_reply"`
|
|
|
|
|
DeleteComment *sqlx.Stmt `yesql:"delete_comment"`
|
|
|
|
|
DeleteCommentReply *sqlx.Stmt `yesql:"delete_comment_reply"`
|
|
|
|
|
DeleteCommentThumbs *sqlx.Stmt `yesql:"delete_comment_thumbs"`
|
|
|
|
|
DeleteReplyThumbs *sqlx.Stmt `yesql:"delete_reply_thumbs"`
|
|
|
|
|
GetCommentReplyThumb *sqlx.Stmt `yesql:"get_comment_reply_thumb"`
|
|
|
|
|
GetTweetCommentThumb *sqlx.Stmt `yesql:"get_tweet_comment_thumb"`
|
|
|
|
|
ThumbsDownComment *sqlx.Stmt `yesql:"thumbs_down_comment"`
|
|
|
|
|
ThumbsDownReply *sqlx.Stmt `yesql:"thumbs_down_reply"`
|
|
|
|
|
ThumbsUpComment *sqlx.Stmt `yesql:"thumbs_up_comment"`
|
|
|
|
|
ThumbsUpReply *sqlx.Stmt `yesql:"thumbs_up_reply"`
|
|
|
|
|
UpdateCommentThumbsCount *sqlx.Stmt `yesql:"update_comment_thumbs_count"`
|
|
|
|
|
CreateComment *sqlx.NamedStmt `yesql:"create_comment"`
|
|
|
|
|
CreateCommentContent *sqlx.NamedStmt `yesql:"create_comment_content"`
|
|
|
|
|
CreateCommentReply *sqlx.NamedStmt `yesql:"create_comment_reply"`
|
|
|
|
|
CreateThumbsUpComment *sqlx.NamedStmt `yesql:"create_thumbs_up_comment"`
|
|
|
|
|
UpdateThumbsUpComment *sqlx.NamedStmt `yesql:"update_thumbs_up_comment"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ContactManager struct {
|
|
|
|
@ -155,9 +171,10 @@ type ContactManager struct {
|
|
|
|
|
AddFriend *sqlx.Stmt `yesql:"add_friend"`
|
|
|
|
|
DelFriend *sqlx.Stmt `yesql:"del_friend"`
|
|
|
|
|
GetContacts *sqlx.Stmt `yesql:"get_contacts"`
|
|
|
|
|
IsFriend *sqlx.Stmt `yesql:"is_friend"`
|
|
|
|
|
GetUserFriend *sqlx.Stmt `yesql:"get_user_friend"`
|
|
|
|
|
RejectFriend *sqlx.Stmt `yesql:"reject_friend"`
|
|
|
|
|
RequestingFriend *sqlx.Stmt `yesql:"requesting_friend"`
|
|
|
|
|
TotalContactsById *sqlx.Stmt `yesql:"total_contacts_by_id"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FollowIndex struct {
|
|
|
|
@ -192,19 +209,20 @@ type LightIndexA struct {
|
|
|
|
|
|
|
|
|
|
type Message struct {
|
|
|
|
|
yesql.Namespace `yesql:"message"`
|
|
|
|
|
CreateMessage *sqlx.Stmt `yesql:"create_message"`
|
|
|
|
|
GetMessageById *sqlx.Stmt `yesql:"get_message_by_id"`
|
|
|
|
|
GetMessageCount *sqlx.Stmt `yesql:"get_message_count"`
|
|
|
|
|
GetMessages *sqlx.Stmt `yesql:"get_messages"`
|
|
|
|
|
GetUnreadCount *sqlx.Stmt `yesql:"get_unread_count"`
|
|
|
|
|
ReadMessage *sqlx.Stmt `yesql:"read_message"`
|
|
|
|
|
CreateMessage *sqlx.NamedStmt `yesql:"create_message"`
|
|
|
|
|
GetMessageCount *sqlx.NamedStmt `yesql:"get_message_count"`
|
|
|
|
|
GetMessages *sqlx.NamedStmt `yesql:"get_messages"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Security struct {
|
|
|
|
|
yesql.Namespace `yesql:"security"`
|
|
|
|
|
GetLatestPhoneCaptcha *sqlx.Stmt `yesql:"get_latest_phone_captcha"`
|
|
|
|
|
SendPhoneCaptcha *sqlx.Stmt `yesql:"send_phone_captcha"`
|
|
|
|
|
UsePhoneCaptcha *sqlx.Stmt `yesql:"use_phone_captcha"`
|
|
|
|
|
CreatePhoneCaptcha *sqlx.NamedStmt `yesql:"create_phone_captcha"`
|
|
|
|
|
UsePhoneCaptcha *sqlx.NamedStmt `yesql:"use_phone_captcha"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SimpleIndex struct {
|
|
|
|
@ -343,26 +361,24 @@ func BuildComment(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Comment
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &Comment{}
|
|
|
|
|
if obj.GetCommentById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentById_Comment))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetCommentContentsByIds, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentContentsByIds_Comment))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
obj = &Comment{
|
|
|
|
|
GetCommentContentsByIds: p.QueryHook(_GetCommentContentsByIds_Comment),
|
|
|
|
|
GetCommmentRepliesByIds: p.QueryHook(_GetCommmentRepliesByIds_Comment),
|
|
|
|
|
GetUsersByIds: p.QueryHook(_GetUsersByIds_Comment),
|
|
|
|
|
}
|
|
|
|
|
if obj.GetCommentCount, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentCount_Comment))); err != nil {
|
|
|
|
|
if obj.GetCommentById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentById_Comment))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetCommentReplayById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentReplayById_Comment))); err != nil {
|
|
|
|
|
if obj.GetCommentReplyById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentReplyById_Comment))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetCommentThumbsMap, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentThumbsMap_Comment))); err != nil {
|
|
|
|
|
if obj.GetCommentThumbs, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentThumbs_Comment))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetComments, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetComments_Comment))); err != nil {
|
|
|
|
|
if obj.GetCommentCount, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_GetCommentCount_Comment))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetCommmentRepliesById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommmentRepliesById_Comment))); err != nil {
|
|
|
|
|
if obj.GetComments, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_GetComments_Comment))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
@ -376,19 +392,22 @@ func BuildCommentManage(p yesql.PreparexBuilder, ctx ...context.Context) (obj *C
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &CommentManage{}
|
|
|
|
|
if obj.CreateComment, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_CreateComment_CommentManage))); err != nil {
|
|
|
|
|
if obj.DeleteComment, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_DeleteComment_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.CreateCommentContent, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_CreateCommentContent_CommentManage))); err != nil {
|
|
|
|
|
if obj.DeleteCommentReply, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_DeleteCommentReply_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.CreateCommentReply, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_CreateCommentReply_CommentManage))); err != nil {
|
|
|
|
|
if obj.DeleteCommentThumbs, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_DeleteCommentThumbs_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.DeleteComment, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_DeleteComment_CommentManage))); err != nil {
|
|
|
|
|
if obj.DeleteReplyThumbs, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_DeleteReplyThumbs_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.DeleteCommentReply, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_DeleteCommentReply_CommentManage))); err != nil {
|
|
|
|
|
if obj.GetCommentReplyThumb, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetCommentReplyThumb_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetTweetCommentThumb, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetTweetCommentThumb_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.ThumbsDownComment, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_ThumbsDownComment_CommentManage))); err != nil {
|
|
|
|
@ -397,10 +416,25 @@ func BuildCommentManage(p yesql.PreparexBuilder, ctx ...context.Context) (obj *C
|
|
|
|
|
if obj.ThumbsDownReply, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_ThumbsDownReply_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.ThumbsUpComment, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_ThumbsUpComment_CommentManage))); err != nil {
|
|
|
|
|
if obj.ThumbsUpReply, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_ThumbsUpReply_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.UpdateCommentThumbsCount, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UpdateCommentThumbsCount_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.ThumbsUpReply, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_ThumbsUpReply_CommentManage))); err != nil {
|
|
|
|
|
if obj.CreateComment, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_CreateComment_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.CreateCommentContent, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_CreateCommentContent_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.CreateCommentReply, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_CreateCommentReply_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.CreateThumbsUpComment, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_CreateThumbsUpComment_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.UpdateThumbsUpComment, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_UpdateThumbsUpComment_CommentManage))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
@ -423,7 +457,7 @@ func BuildContactManager(p yesql.PreparexBuilder, ctx ...context.Context) (obj *
|
|
|
|
|
if obj.GetContacts, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetContacts_ContactManager))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.IsFriend, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_IsFriend_ContactManager))); err != nil {
|
|
|
|
|
if obj.GetUserFriend, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetUserFriend_ContactManager))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.RejectFriend, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_RejectFriend_ContactManager))); err != nil {
|
|
|
|
@ -432,6 +466,9 @@ func BuildContactManager(p yesql.PreparexBuilder, ctx ...context.Context) (obj *
|
|
|
|
|
if obj.RequestingFriend, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_RequestingFriend_ContactManager))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.TotalContactsById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_TotalContactsById_ContactManager))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -527,22 +564,22 @@ func BuildMessage(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Message
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &Message{}
|
|
|
|
|
if obj.CreateMessage, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_CreateMessage_Message))); err != nil {
|
|
|
|
|
if obj.GetMessageById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetMessageById_Message))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetMessageById, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetMessageById_Message))); err != nil {
|
|
|
|
|
if obj.GetUnreadCount, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetUnreadCount_Message))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetMessageCount, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetMessageCount_Message))); err != nil {
|
|
|
|
|
if obj.ReadMessage, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_ReadMessage_Message))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetMessages, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetMessages_Message))); err != nil {
|
|
|
|
|
if obj.CreateMessage, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_CreateMessage_Message))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.GetUnreadCount, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_GetUnreadCount_Message))); err != nil {
|
|
|
|
|
if obj.GetMessageCount, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_GetMessageCount_Message))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.ReadMessage, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_ReadMessage_Message))); err != nil {
|
|
|
|
|
if obj.GetMessages, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_GetMessages_Message))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
@ -562,7 +599,10 @@ func BuildSecurity(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Securi
|
|
|
|
|
if obj.SendPhoneCaptcha, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_SendPhoneCaptcha_Security))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.UsePhoneCaptcha, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UsePhoneCaptcha_Security))); err != nil {
|
|
|
|
|
if obj.CreatePhoneCaptcha, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_CreatePhoneCaptcha_Security))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.UsePhoneCaptcha, err = p.PrepareNamedContext(c, p.Rebind(p.QueryHook(_UsePhoneCaptcha_Security))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|