Documentation ¶
Index ¶
- func DeleteCodeTemplateByTemplateId(tempId int) (int64, error)
- func GetWechatTppAuthAppidList() (appids []string)
- func InsertCodeTemplate(codeTemp *CodeTemplate) (int64, error)
- func SaveWechatTppAuthAppid(appid string)
- func SetWechatTppAuthAppidExpired(appid string, d time.Duration)
- func SyncWechatTppOpenAccount(appid, openAppid string) error
- type CodeTemplate
- type WechatTppAuthAppid
- type WechatTppOpenAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWechatTppAuthAppidList ¶
func GetWechatTppAuthAppidList() (appids []string)
func InsertCodeTemplate ¶
func InsertCodeTemplate(codeTemp *CodeTemplate) (int64, error)
func SaveWechatTppAuthAppid ¶
func SaveWechatTppAuthAppid(appid string)
Types ¶
type CodeTemplate ¶
type CodeTemplate struct { hskmodel.Model `xorm:"extends" json:"-"` DraftId int `json:"draft_id" xorm:"not null default 0 comment('草稿箱id') INT(11)"` Timestamp int64 `json:"timestamp" xorm:"not null default 0 comment('时间戳') INT(11)"` *template.Template `xorm:"extends"` }
func GetCTByDraftId ¶
func GetCTByDraftId(draftId, timestamp interface{}) (*CodeTemplate, bool, error)
func GetCTByTemplateId ¶
func GetCTByTemplateId(tempId interface{}) (*CodeTemplate, bool, error)
func ListCodeTemplate ¶
func ListCodeTemplate() (cts []*CodeTemplate, err error)
type WechatTppAuthAppid ¶
type WechatTppAuthAppid struct { hskmodel.Model `xorm:"extends" json:"-"` Appid string `json:"appid" xorm:"not null defualt '' unique comment('appid') VARCHAR(128)"` Expired time.Time `json:"expired" xorm:"comment('过期时间') DATETIME"` Extension map[string]interface{} `json:"extension" xorm:"json"` }
func GetRandWechatTppAuthAppidExpired ¶
func GetRandWechatTppAuthAppidExpired() *WechatTppAuthAppid
type WechatTppOpenAccount ¶
type WechatTppOpenAccount struct { hskmodel.Model `xorm:"extends" json:"-"` OpenAppid string `json:"open_appid" xorm:"not null defualt '' comment('open_appid') VARCHAR(128)"` Appid string `json:"appid" xorm:"not null defualt '' comment('appid') VARCHAR(128)"` Extension map[string]interface{} `json:"extension" xorm:"json"` }
Click to show internal directories.
Click to hide internal directories.