2023-06-04 23:26:48 +08:00

15 lines
502 B
Go

package repository
import "code.mylomen.com/syj/lib/context"
type thirdUserTokenRepository interface {
FindByToken(ctx context.GormWithZap, token string) *FThirdUserTokenDO
FindByBizAndCorpId(ctx context.GormWithZap, bizId, corpUid uint64) *FThirdUserTokenDO
SaveUserLoginToken(ctx context.GormWithZap, data *FThirdUserTokenDO) error
UpdateUserLoginToken(ctx context.GormWithZap, data *FThirdUserTokenDO) error
}
var ThirdUserToken thirdUserTokenRepository = new(thirdUserTokenRepositoryImpl)