fix: fix circular import

This commit is contained in:
JustSong
2022-11-22 15:23:12 +08:00
parent d0c2c27071
commit e911c3fb7c
4 changed files with 14 additions and 15 deletions
+5
View File
@@ -28,6 +28,11 @@ func (i *WeChatTestAccountTokenStoreItem) Key() string {
return i.AppID + i.AppSecret
}
func (i *WeChatTestAccountTokenStoreItem) IsShared() bool {
return model.DB.Where("wechat_test_account_id = ? and wechat_test_account_secret = ?",
i.AppID, i.AppSecret).Find(&model.User{}).RowsAffected != 1
}
func (i *WeChatTestAccountTokenStoreItem) Token() string {
return i.AccessToken
}