Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserInfoEnsureIndex ¶
Types ¶
type UserAccessToken ¶
type UserAccessToken struct { AppId string `bson:"appid" json:"-"` OpenId string `bson:"openid" json:"openid"` AccessToken core.UserAccessToken `bson:"access_token" json:"access_token"` UpdatedTime time.Time `bson:"updated_time" json:"-"` }
func ListUserAccessToken ¶
func ListUserAccessToken(s *mgo.Session) (list []*UserAccessToken, err error)
func (UserAccessToken) TableName ¶
func (q UserAccessToken) TableName() string
type UserInfo ¶
type WechatConfig ¶
type WechatConfig struct { Name string `bson:"name" json:"name"` AppId string `bson:"appid" json:"appid"` AppSecret string `bson:"appsecret" json:"appsecret"` ReceiveToken string `bson:"receive_token" json:"receive_token"` CallbackUrl string `bson:"callback_url" json:"callback_url"` Detail WechatConfigDetail `bson:"detail" json:"detail"` CreatedTime time.Time `bson:"created_time" json:"-"` UpdatedTime time.Time `bson:"updated_time" json:"-"` DeletedTime time.Time `bson:"deleted_time" json:"-"` }
func ListWechatConfig ¶
func ListWechatConfig(s *mgo.Session) (list []*WechatConfig, err error)
func (*WechatConfig) DetailEnsure ¶
func (q *WechatConfig) DetailEnsure(s *mgo.Session) error
func (*WechatConfig) FetchByName ¶
func (q *WechatConfig) FetchByName(s *mgo.Session) error
func (WechatConfig) TableName ¶
func (q WechatConfig) TableName() string
type WechatConfigDetail ¶
type WechatConfigDetail struct { Key string `bson:"key" json:"key"` Secret string `bson:"secret" json:"secret"` }
func (*WechatConfigDetail) Ensure ¶
func (q *WechatConfigDetail) Ensure()
Click to show internal directories.
Click to hide internal directories.