cache.go 501 B

123456789101112131415
  1. package dao
  2. import (
  3. "context"
  4. "go-common/app/service/main/vip/model"
  5. )
  6. //go:generate $GOPATH/src/go-common/app/tool/cache/gen
  7. type _cache interface {
  8. // cache: -nullcache=&model.OpenBindInfo{Mid:-1} -check_null_code=$!=nil&&$.Mid==-1
  9. BindInfoByMid(c context.Context, mid int64, appID int64) (*model.OpenBindInfo, error)
  10. // cache: -nullcache=&model.OpenInfo{Mid:-1} -check_null_code=$!=nil&&$.Mid==-1
  11. OpenInfoByOpenID(c context.Context, openID string, appID int64) (*model.OpenInfo, error)
  12. }