15 lines
461 B
Go
Raw Normal View History

2023-06-04 22:54:54 +08:00
package repository
2024-02-21 12:04:40 +08:00
import "context"
2023-06-04 22:54:54 +08:00
type thirdUserTokenRepository interface {
2024-02-21 12:04:40 +08:00
FindByToken(ctx context.Context, token string) *FThirdUserTokenDO
FindByBizAndCorpId(ctx context.Context, bizId, corpUid uint64) *FThirdUserTokenDO
2023-06-04 22:54:54 +08:00
2024-02-21 12:04:40 +08:00
SaveUserLoginToken(ctx context.Context, data *FThirdUserTokenDO) error
2023-06-04 22:54:54 +08:00
2024-02-21 12:04:40 +08:00
UpdateUserLoginToken(ctx context.Context, data *FThirdUserTokenDO) error
2023-06-04 22:54:54 +08:00
}
var ThirdUserToken thirdUserTokenRepository = new(thirdUserTokenRepositoryImpl)