예제 #1
0
파일: none.go 프로젝트: nanopack/portal
func (n None) SetVip(vip core.Vip) error {
	err := common.SetVip(vip)
	if err != nil {
		return err
	}
	if database.CentralStore {
		return database.SetVip(vip)
	}
	return nil
}
예제 #2
0
파일: redis.go 프로젝트: nanopack/portal
func (r Redis) SetVip(vip core.Vip) error {
	return common.SetVip(vip)
}