|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
// Code generated by Yesql. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// - Yesql v1.1.5
|
|
|
|
|
// - Yesql v1.1.6
|
|
|
|
|
|
|
|
|
|
package cc
|
|
|
|
|
|
|
|
|
@ -12,31 +12,38 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
_UserInfo_LightIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_NewestTags_Topic = `SELECT t.id id, t.user_id user_id, t.tag tag, t.quote_num quote_num, u.id, u.nickname, u.username, u.status, u.avatar, u.is_admin FROM @tag t JOIN @user u ON t.user_id = u.id WHERE t.is_del = 0 AND t.quote_num > 0 ORDER BY t.id DESC LIMIT ? OFFSET ?`
|
|
|
|
|
_TagsByKeywordA_Topic = `SELECT id, user_id, tag, quote_num FROM @tag WHERE is_del = 0 ORDER BY quote_num DESC LIMIT 6`
|
|
|
|
|
_TagsByKeywordB_Topic = `SELECT id, user_id, tag, quote_num FROM @tag WHERE is_del = 0 AND tag LIKE ? ORDER BY quote_num DESC LIMIT 6`
|
|
|
|
|
_TagsByIdB_Topic = `SELECT id, user_id, tag, quote_num FROM @tag WHERE id IN (?)`
|
|
|
|
|
_HotTags_Topic = `SELECT t.id id, t.user_id user_id, t.tag tag, t.quote_num quote_num, u.id, u.nickname, u.username, u.status, u.avatar, u.is_admin FROM @tag t JOIN @user u ON t.user_id = u.id WHERE t.is_del = 0 AND t.quote_num > 0 ORDER BY t.quote_num DESC LIMIT ? OFFSET ?`
|
|
|
|
|
_InsertTag_Topic = `INSERT INTO @tag (user_id, tag, created_on, modified_on, quote_num) VALUES (?, ?, ?, ?, 1)`
|
|
|
|
|
_TagsByIdA_Topic = `SELECT id FROM @tag WHERE id IN (?) AND is_del = 0 AND quote_num > 0`
|
|
|
|
|
_DecrTagsById_Topic = `UPDATE @tag SET quote_num=quote_num-1, modified_on=? WHERE id IN (?)`
|
|
|
|
|
_TagsForIncr_Topic = `SELECT id, user_id, tag, quote_num FROM @tag WHERE tag IN (?)`
|
|
|
|
|
_IncrTagsById_Topic = `UPDATE @tag SET quote_num=quote_num+1, is_del=0, modified_on=? WHERE id IN (?)`
|
|
|
|
|
_UserInfo_Wallet = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_AuthorizationManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_ContactManager = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FollowIndexA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FollowIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_SimpleIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_UserManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_CommentManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FriendIndexA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FriendIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_LightIndexA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_LightIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Message = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Security = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_SimpleIndexA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_SimpleIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_DecrTagsById_TopicA = `UPDATE @tag SET quote_num=quote_num-1, modified_on=? WHERE id IN (?)`
|
|
|
|
|
_HotTags_TopicA = `SELECT t.id id, t.user_id user_id, t.tag tag, t.quote_num quote_num, u.id, u.nickname, u.username, u.status, u.avatar, u.is_admin FROM @tag t JOIN @user u ON t.user_id = u.id WHERE t.is_del = 0 AND t.quote_num > 0 ORDER BY t.quote_num DESC LIMIT ? OFFSET ?`
|
|
|
|
|
_IncrTagsById_TopicA = `UPDATE @tag SET quote_num=quote_num+1, is_del=0, modified_on=? WHERE id IN (?)`
|
|
|
|
|
_InsertTag_TopicA = `INSERT INTO @tag (user_id, tag, created_on, modified_on, quote_num) VALUES (?, ?, ?, ?, 1)`
|
|
|
|
|
_NewestTags_TopicA = `SELECT t.id id, t.user_id user_id, t.tag tag, t.quote_num quote_num, u.id, u.nickname, u.username, u.status, u.avatar, u.is_admin FROM @tag t JOIN @user u ON t.user_id = u.id WHERE t.is_del = 0 AND t.quote_num > 0 ORDER BY t.id DESC LIMIT ? OFFSET ?`
|
|
|
|
|
_TagsByIdA_TopicA = `SELECT id FROM @tag WHERE id IN (?) AND is_del = 0 AND quote_num > 0`
|
|
|
|
|
_TagsByIdB_TopicA = `SELECT id, user_id, tag, quote_num FROM @tag WHERE id IN (?)`
|
|
|
|
|
_TagsByKeywordA_TopicA = `SELECT id, user_id, tag, quote_num FROM @tag WHERE is_del = 0 ORDER BY quote_num DESC LIMIT 6`
|
|
|
|
|
_TagsByKeywordB_TopicA = `SELECT id, user_id, tag, quote_num FROM @tag WHERE is_del = 0 AND tag LIKE ? ORDER BY quote_num DESC LIMIT 6`
|
|
|
|
|
_TagsForIncr_TopicA = `SELECT id, user_id, tag, quote_num FROM @tag WHERE tag IN (?)`
|
|
|
|
|
_UserInfo_TweetA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_TweetHelpA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_TweetHelp = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_AuthorizationManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Comment = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Message = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_FriendIndex = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Tweet = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_TweetManageA = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_TweetManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Tweet = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_UserManage = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
_UserInfo_Wallet = `SELECT * FROM @user WHERE username=?`
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type AuthorizationManage struct {
|
|
|
|
@ -64,16 +71,31 @@ type FollowIndex struct {
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FollowIndexA struct {
|
|
|
|
|
yesql.Namespace `yesql:"follow_index_a"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FriendIndex struct {
|
|
|
|
|
yesql.Namespace `yesql:"friend_index"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FriendIndexA struct {
|
|
|
|
|
yesql.Namespace `yesql:"friend_index_a"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LightIndex struct {
|
|
|
|
|
yesql.Namespace `yesql:"light_index"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LightIndexA struct {
|
|
|
|
|
yesql.Namespace `yesql:"light_index_a"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Message struct {
|
|
|
|
|
yesql.Namespace `yesql:"message"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
@ -89,8 +111,13 @@ type SimpleIndex struct {
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Topic struct {
|
|
|
|
|
yesql.Namespace `yesql:"topic"`
|
|
|
|
|
type SimpleIndexA struct {
|
|
|
|
|
yesql.Namespace `yesql:"simple_index_a"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TopicA struct {
|
|
|
|
|
yesql.Namespace `yesql:"topic_a"`
|
|
|
|
|
DecrTagsById string `yesql:"decr_tags_by_id"`
|
|
|
|
|
IncrTagsById string `yesql:"incr_tags_by_id"`
|
|
|
|
|
TagsByIdA string `yesql:"tags_by_id_a"`
|
|
|
|
@ -108,16 +135,31 @@ type Tweet struct {
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TweetA struct {
|
|
|
|
|
yesql.Namespace `yesql:"tweet_a"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TweetHelp struct {
|
|
|
|
|
yesql.Namespace `yesql:"tweet_help"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TweetHelpA struct {
|
|
|
|
|
yesql.Namespace `yesql:"tweet_help_a"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TweetManage struct {
|
|
|
|
|
yesql.Namespace `yesql:"tweet_manage"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TweetManageA struct {
|
|
|
|
|
yesql.Namespace `yesql:"tweet_manage_a"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserManage struct {
|
|
|
|
|
yesql.Namespace `yesql:"user_manage"`
|
|
|
|
|
UserInfo *sqlx.Stmt `yesql:"user_info"`
|
|
|
|
@ -198,6 +240,20 @@ func BuildFollowIndex(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Fol
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildFollowIndexA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *FollowIndexA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &FollowIndexA{}
|
|
|
|
|
if obj.UserInfo, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UserInfo_FollowIndexA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildFriendIndex(p yesql.PreparexBuilder, ctx ...context.Context) (obj *FriendIndex, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
@ -212,6 +268,20 @@ func BuildFriendIndex(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Fri
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildFriendIndexA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *FriendIndexA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &FriendIndexA{}
|
|
|
|
|
if obj.UserInfo, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UserInfo_FriendIndexA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildLightIndex(p yesql.PreparexBuilder, ctx ...context.Context) (obj *LightIndex, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
@ -226,6 +296,20 @@ func BuildLightIndex(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Ligh
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildLightIndexA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *LightIndexA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &LightIndexA{}
|
|
|
|
|
if obj.UserInfo, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UserInfo_LightIndexA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildMessage(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Message, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
@ -268,33 +352,47 @@ func BuildSimpleIndex(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Sim
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildTopic(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Topic, err error) {
|
|
|
|
|
func BuildSimpleIndexA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *SimpleIndexA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &Topic{
|
|
|
|
|
DecrTagsById: p.QueryHook(_DecrTagsById_Topic),
|
|
|
|
|
IncrTagsById: p.QueryHook(_IncrTagsById_Topic),
|
|
|
|
|
TagsByIdA: p.QueryHook(_TagsByIdA_Topic),
|
|
|
|
|
TagsByIdB: p.QueryHook(_TagsByIdB_Topic),
|
|
|
|
|
TagsForIncr: p.QueryHook(_TagsForIncr_Topic),
|
|
|
|
|
obj = &SimpleIndexA{}
|
|
|
|
|
if obj.UserInfo, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UserInfo_SimpleIndexA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.HotTags, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_HotTags_Topic))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildTopicA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *TopicA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &TopicA{
|
|
|
|
|
DecrTagsById: p.QueryHook(_DecrTagsById_TopicA),
|
|
|
|
|
IncrTagsById: p.QueryHook(_IncrTagsById_TopicA),
|
|
|
|
|
TagsByIdA: p.QueryHook(_TagsByIdA_TopicA),
|
|
|
|
|
TagsByIdB: p.QueryHook(_TagsByIdB_TopicA),
|
|
|
|
|
TagsForIncr: p.QueryHook(_TagsForIncr_TopicA),
|
|
|
|
|
}
|
|
|
|
|
if obj.HotTags, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_HotTags_TopicA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.InsertTag, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_InsertTag_Topic))); err != nil {
|
|
|
|
|
if obj.InsertTag, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_InsertTag_TopicA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.NewestTags, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_NewestTags_Topic))); err != nil {
|
|
|
|
|
if obj.NewestTags, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_NewestTags_TopicA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.TagsByKeywordA, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_TagsByKeywordA_Topic))); err != nil {
|
|
|
|
|
if obj.TagsByKeywordA, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_TagsByKeywordA_TopicA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if obj.TagsByKeywordB, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_TagsByKeywordB_Topic))); err != nil {
|
|
|
|
|
if obj.TagsByKeywordB, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_TagsByKeywordB_TopicA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
@ -314,6 +412,20 @@ func BuildTweet(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Tweet, er
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildTweetA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *TweetA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &TweetA{}
|
|
|
|
|
if obj.UserInfo, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UserInfo_TweetA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildTweetHelp(p yesql.PreparexBuilder, ctx ...context.Context) (obj *TweetHelp, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
@ -328,6 +440,20 @@ func BuildTweetHelp(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Tweet
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildTweetHelpA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *TweetHelpA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &TweetHelpA{}
|
|
|
|
|
if obj.UserInfo, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UserInfo_TweetHelpA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildTweetManage(p yesql.PreparexBuilder, ctx ...context.Context) (obj *TweetManage, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
@ -342,6 +468,20 @@ func BuildTweetManage(p yesql.PreparexBuilder, ctx ...context.Context) (obj *Twe
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildTweetManageA(p yesql.PreparexBuilder, ctx ...context.Context) (obj *TweetManageA, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|
c = ctx[0]
|
|
|
|
|
} else {
|
|
|
|
|
c = context.Background()
|
|
|
|
|
}
|
|
|
|
|
obj = &TweetManageA{}
|
|
|
|
|
if obj.UserInfo, err = p.PreparexContext(c, p.Rebind(p.QueryHook(_UserInfo_TweetManageA))); err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BuildUserManage(p yesql.PreparexBuilder, ctx ...context.Context) (obj *UserManage, err error) {
|
|
|
|
|
var c context.Context
|
|
|
|
|
if len(ctx) > 0 && ctx[0] != nil {
|
|
|
|
|