// BasicAuthValidation It will check the user id present in context is valid or not
BasicAuthValidation It will check the user id present in context is valid or not
// BasicAuthValidation It will check the user id present in context is valid or not
func BasicAuthValidation(ctx context.Context, db *gorm.DB) error {
	v := &ValidateUserInfo{
		Ctx: ctx,
		RootTableTag:       "id",
		Args:               nil,
		SkipRootValidation: false,
		SkipArgsValidation: true,
		Db:                 db,
		skipValidation:     true,
	}
	if err := v.ValidateUser(); err != nil {
		return err
	}
	return nil
}
func BasicAuthValidation ( ctx context . Context , db * gorm . DB ) error { v := & ValidateUserInfo { Ctx : ctx , RootTableTag : " " , Args : nil , SkipRootValidation : false , SkipArgsValidation : true , Db : db , skipValidation : true , } if err := v . ValidateUser ( ) ; err != nil { return err } return nil }
BasicAuthValidation It will check the user id present in context is valid or not
BasicAuthValidation It will check the user id present in context is valid or not
//RootTable:          &models.UserProfile{},